org.outernet.cesium-unity 1.15.3-linux.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +420 -0
- package/CHANGES.md.meta +7 -0
- package/Editor/BuildCesiumForUnity.cs +186 -0
- package/Editor/BuildCesiumForUnity.cs.meta +11 -0
- package/Editor/Cesium3DTilesetEditor.cs +542 -0
- package/Editor/Cesium3DTilesetEditor.cs.meta +11 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs +66 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumCameraControllerEditor.cs +174 -0
- package/Editor/CesiumCameraControllerEditor.cs.meta +11 -0
- package/Editor/CesiumCameraManagerEditor.cs +65 -0
- package/Editor/CesiumCameraManagerEditor.cs.meta +11 -0
- package/Editor/CesiumCartographicPolygonEditor.cs +23 -0
- package/Editor/CesiumCartographicPolygonEditor.cs.meta +11 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs +41 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumEditor.asmdef +26 -0
- package/Editor/CesiumEditor.asmdef.meta +7 -0
- package/Editor/CesiumEditorStyle.cs +188 -0
- package/Editor/CesiumEditorStyle.cs.meta +11 -0
- package/Editor/CesiumEditorUtility.cs +394 -0
- package/Editor/CesiumEditorUtility.cs.meta +11 -0
- package/Editor/CesiumEditorWindow.cs +447 -0
- package/Editor/CesiumEditorWindow.cs.meta +11 -0
- package/Editor/CesiumFlyToControllerEditor.cs +76 -0
- package/Editor/CesiumFlyToControllerEditor.cs.meta +11 -0
- package/Editor/CesiumGeoreferenceEditor.cs +277 -0
- package/Editor/CesiumGeoreferenceEditor.cs.meta +11 -0
- package/Editor/CesiumGlobeAnchorEditor.cs +202 -0
- package/Editor/CesiumGlobeAnchorEditor.cs.meta +11 -0
- package/Editor/CesiumInspectorGUI.cs +187 -0
- package/Editor/CesiumInspectorGUI.cs.meta +11 -0
- package/Editor/CesiumIonAsset.cs +192 -0
- package/Editor/CesiumIonAsset.cs.meta +11 -0
- package/Editor/CesiumIonAssetsWindow.cs +257 -0
- package/Editor/CesiumIonAssetsWindow.cs.meta +11 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs +87 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumIonServerManager.cs +153 -0
- package/Editor/CesiumIonServerManager.cs.meta +11 -0
- package/Editor/CesiumIonServerSelector.cs +127 -0
- package/Editor/CesiumIonServerSelector.cs.meta +11 -0
- package/Editor/CesiumIonSession.cs +102 -0
- package/Editor/CesiumIonSession.cs.meta +11 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs +102 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumRasterOverlayEditor.cs +230 -0
- package/Editor/CesiumRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumSubSceneEditor.cs +201 -0
- package/Editor/CesiumSubSceneEditor.cs.meta +11 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs +88 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs +111 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs +277 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs.meta +3 -0
- package/Editor/CompileCesiumForUnityNative.cs +581 -0
- package/Editor/CompileCesiumForUnityNative.cs.meta +11 -0
- package/Editor/ConfigureReinterop.cs +255 -0
- package/Editor/ConfigureReinterop.cs.meta +11 -0
- package/Editor/Helpers.cs +102 -0
- package/Editor/Helpers.cs.meta +11 -0
- package/Editor/IonAssetsMultiColumnHeader.cs +45 -0
- package/Editor/IonAssetsMultiColumnHeader.cs.meta +11 -0
- package/Editor/IonAssetsTreeView.cs +214 -0
- package/Editor/IonAssetsTreeView.cs.meta +11 -0
- package/Editor/IonMissingAssetWindow.cs +65 -0
- package/Editor/IonMissingAssetWindow.cs.meta +11 -0
- package/Editor/IonTokenTroubleshootingWindow.cs +615 -0
- package/Editor/IonTokenTroubleshootingWindow.cs.meta +11 -0
- package/Editor/NativeDownloadHandler.cs +35 -0
- package/Editor/NativeDownloadHandler.cs.meta +11 -0
- package/Editor/QuickAddItem.cs +43 -0
- package/Editor/QuickAddItem.cs.meta +11 -0
- package/Editor/Resources/Cesium-128x128.png +0 -0
- package/Editor/Resources/Cesium-128x128.png.meta +98 -0
- package/Editor/Resources/Cesium-24x24.png +0 -0
- package/Editor/Resources/Cesium-24x24.png.meta +123 -0
- package/Editor/Resources/Cesium-64x64.png +0 -0
- package/Editor/Resources/Cesium-64x64.png.meta +98 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png.meta +123 -0
- package/Editor/Resources/Cesium-for-Unity-light.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-light.png.meta +123 -0
- package/Editor/Resources/Cesium-icon-16x16.png +0 -0
- package/Editor/Resources/Cesium-icon-16x16.png.meta +98 -0
- package/Editor/Resources/FontAwesome/attribution.txt +9 -0
- package/Editor/Resources/FontAwesome/attribution.txt.meta +7 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png +0 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/check-solid.png +0 -0
- package/Editor/Resources/FontAwesome/check-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/check-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/check-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/folder.png +0 -0
- package/Editor/Resources/FontAwesome/folder.png.meta +147 -0
- package/Editor/Resources/FontAwesome/folder.svg +5 -0
- package/Editor/Resources/FontAwesome/folder.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png +0 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/key-solid.png +0 -0
- package/Editor/Resources/FontAwesome/key-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/key-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/key-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/plus-solid.png +0 -0
- package/Editor/Resources/FontAwesome/plus-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/times-solid.png +0 -0
- package/Editor/Resources/FontAwesome/times-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/times-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/times-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome.meta +8 -0
- package/Editor/Resources.meta +8 -0
- package/Editor/SelectIonTokenWindow.cs +249 -0
- package/Editor/SelectIonTokenWindow.cs.meta +11 -0
- package/Editor/arm64.meta +8 -0
- package/Editor/csc.rsp +1 -0
- package/Editor/csc.rsp.meta +7 -0
- package/Editor/libCesiumForUnityNative-Editor.so +0 -0
- package/Editor/libCesiumForUnityNative-Editor.so.meta +2 -0
- package/Editor/libCesiumForUnityNative-Runtime.so +0 -0
- package/Editor/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Editor/x86_64.meta +8 -0
- package/Editor.meta +8 -0
- package/LICENSE +201 -0
- package/LICENSE.meta +7 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so +0 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Plugins/Standalone.meta +8 -0
- package/Plugins.meta +8 -0
- package/README.md +39 -0
- package/README.md.meta +7 -0
- package/Reinterop.deps.json +172 -0
- package/Reinterop.deps.json.meta +7 -0
- package/Reinterop.dll +0 -0
- package/Reinterop.dll.meta +79 -0
- package/Runtime/Cesium3DTile.cs +37 -0
- package/Runtime/Cesium3DTile.cs.meta +11 -0
- package/Runtime/Cesium3DTileset.cs +788 -0
- package/Runtime/Cesium3DTileset.cs.meta +11 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs +65 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumBackwardCompatibility.cs +163 -0
- package/Runtime/CesiumBackwardCompatibility.cs.meta +11 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs +72 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumCameraController.cs +827 -0
- package/Runtime/CesiumCameraController.cs.meta +11 -0
- package/Runtime/CesiumCameraManager.cs +105 -0
- package/Runtime/CesiumCameraManager.cs.meta +11 -0
- package/Runtime/CesiumCartographicPolygon.cs +152 -0
- package/Runtime/CesiumCartographicPolygon.cs.meta +11 -0
- package/Runtime/CesiumCreditSystem.cs +343 -0
- package/Runtime/CesiumCreditSystem.cs.meta +11 -0
- package/Runtime/CesiumCreditSystemUI.cs +402 -0
- package/Runtime/CesiumCreditSystemUI.cs.meta +11 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs +21 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumEllipsoid.cs +107 -0
- package/Runtime/CesiumEllipsoid.cs.meta +11 -0
- package/Runtime/CesiumFeature.cs +279 -0
- package/Runtime/CesiumFeature.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdAttribute.cs +61 -0
- package/Runtime/CesiumFeatureIdAttribute.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdSet.cs +165 -0
- package/Runtime/CesiumFeatureIdSet.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdTexture.cs +68 -0
- package/Runtime/CesiumFeatureIdTexture.cs.meta +11 -0
- package/Runtime/CesiumFlyToController.cs +539 -0
- package/Runtime/CesiumFlyToController.cs.meta +11 -0
- package/Runtime/CesiumGeoreference.cs +628 -0
- package/Runtime/CesiumGeoreference.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchor.cs +664 -0
- package/Runtime/CesiumGlobeAnchor.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs +105 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs.meta +11 -0
- package/Runtime/CesiumIntMatN.cs +398 -0
- package/Runtime/CesiumIntMatN.cs.meta +11 -0
- package/Runtime/CesiumIntVecN.cs +525 -0
- package/Runtime/CesiumIntVecN.cs.meta +11 -0
- package/Runtime/CesiumIonRasterOverlay.cs +110 -0
- package/Runtime/CesiumIonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumIonServer.cs +137 -0
- package/Runtime/CesiumIonServer.cs.meta +11 -0
- package/Runtime/CesiumMetadata.cs +33 -0
- package/Runtime/CesiumMetadata.cs.meta +11 -0
- package/Runtime/CesiumMetadataValue.cs +1764 -0
- package/Runtime/CesiumMetadataValue.cs.meta +11 -0
- package/Runtime/CesiumMetadataValueType.cs +203 -0
- package/Runtime/CesiumMetadataValueType.cs.meta +11 -0
- package/Runtime/CesiumModelMetadata.cs +26 -0
- package/Runtime/CesiumModelMetadata.cs.meta +11 -0
- package/Runtime/CesiumObjectPool.cs +74 -0
- package/Runtime/CesiumObjectPool.cs.meta +11 -0
- package/Runtime/CesiumObjectPools.cs +39 -0
- package/Runtime/CesiumObjectPools.cs.meta +11 -0
- package/Runtime/CesiumOriginShift.cs +146 -0
- package/Runtime/CesiumOriginShift.cs.meta +11 -0
- package/Runtime/CesiumPointCloudRenderer.cs +246 -0
- package/Runtime/CesiumPointCloudRenderer.cs.meta +11 -0
- package/Runtime/CesiumPointCloudShading.cs +76 -0
- package/Runtime/CesiumPointCloudShading.cs.meta +11 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs +109 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumPrimitiveFeatures.cs +130 -0
- package/Runtime/CesiumPrimitiveFeatures.cs.meta +11 -0
- package/Runtime/CesiumPropertyArray.cs +64 -0
- package/Runtime/CesiumPropertyArray.cs.meta +11 -0
- package/Runtime/CesiumPropertyTable.cs +126 -0
- package/Runtime/CesiumPropertyTable.cs.meta +11 -0
- package/Runtime/CesiumPropertyTableProperty.cs +1734 -0
- package/Runtime/CesiumPropertyTableProperty.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlay.cs +239 -0
- package/Runtime/CesiumRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs +65 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumRuntime.asmdef +32 -0
- package/Runtime/CesiumRuntime.asmdef.meta +7 -0
- package/Runtime/CesiumRuntime.cs +3 -0
- package/Runtime/CesiumRuntime.cs.meta +11 -0
- package/Runtime/CesiumRuntimeSettings.cs +188 -0
- package/Runtime/CesiumRuntimeSettings.cs.meta +11 -0
- package/Runtime/CesiumSampleHeightResult.cs +47 -0
- package/Runtime/CesiumSampleHeightResult.cs.meta +11 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs +93 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs.meta +11 -0
- package/Runtime/CesiumSubScene.cs +473 -0
- package/Runtime/CesiumSubScene.cs.meta +11 -0
- package/Runtime/CesiumTileExcluder.cs +47 -0
- package/Runtime/CesiumTileExcluder.cs.meta +11 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs +93 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs +129 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs +414 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs.meta +3 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs +75 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs.meta +11 -0
- package/Runtime/ConfigureReinterop.cs +926 -0
- package/Runtime/ConfigureReinterop.cs.meta +11 -0
- package/Runtime/Helpers.cs +122 -0
- package/Runtime/Helpers.cs.meta +11 -0
- package/Runtime/ICesiumRestartable.cs +17 -0
- package/Runtime/ICesiumRestartable.cs.meta +11 -0
- package/Runtime/NativeCoroutine.cs +28 -0
- package/Runtime/NativeCoroutine.cs.meta +11 -0
- package/Runtime/NativeDownloadHandler.cs +29 -0
- package/Runtime/NativeDownloadHandler.cs.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab +78 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab.meta +7 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss +2 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml +4 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml.meta +10 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset +38 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat +232 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph +14271 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl +156 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl.meta +7 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat +125 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader +73 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader.meta +10 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph +2207 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph +722 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat +261 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph +5873 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/DynamicCamera.prefab +253 -0
- package/Runtime/Resources/DynamicCamera.prefab.meta +7 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph +2171 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph.meta +10 -0
- package/Runtime/Resources/green1x1.png +0 -0
- package/Runtime/Resources/green1x1.png.meta +123 -0
- package/Runtime/Resources.meta +8 -0
- package/Runtime/TestGltfModel.cs +56 -0
- package/Runtime/TestGltfModel.cs.meta +11 -0
- package/Runtime/TestReinterop.cs +21 -0
- package/Runtime/TestReinterop.cs.meta +11 -0
- package/Runtime/UnityLifetime.cs +27 -0
- package/Runtime/UnityLifetime.cs.meta +11 -0
- package/Runtime/WaitForTask.cs +25 -0
- package/Runtime/WaitForTask.cs.meta +11 -0
- package/Runtime/csc.rsp +1 -0
- package/Runtime/csc.rsp.meta +7 -0
- package/Runtime.meta +8 -0
- package/ThirdParty.json +27 -0
- package/ThirdParty.json.meta +7 -0
- package/WGS84.asset +18 -0
- package/WGS84.asset.meta +8 -0
- package/package.json +29 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 407c0cff68611ac46a65eec87a5203f5
|
|
3
|
+
ScriptedImporter:
|
|
4
|
+
internalIDToNameTable: []
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
serializedVersion: 2
|
|
7
|
+
userData:
|
|
8
|
+
assetBundleName:
|
|
9
|
+
assetBundleVariant:
|
|
10
|
+
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
#ifndef CESIUM_POINT_CLOUD_SHADING
|
|
2
|
+
#define CESIUM_POINT_CLOUD_SHADING
|
|
3
|
+
|
|
4
|
+
#include "UnityCG.cginc"
|
|
5
|
+
#include "UnityInstancing.cginc"
|
|
6
|
+
#include "UnityLightingCommon.cginc"
|
|
7
|
+
|
|
8
|
+
struct Point
|
|
9
|
+
{
|
|
10
|
+
float3 position;
|
|
11
|
+
#ifdef HAS_POINT_NORMALS
|
|
12
|
+
float3 normal;
|
|
13
|
+
#endif
|
|
14
|
+
#ifdef HAS_POINT_COLORS
|
|
15
|
+
uint packedColor;
|
|
16
|
+
#endif
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
StructuredBuffer<Point> _inPoints;
|
|
20
|
+
|
|
21
|
+
float4x4 _worldTransform;
|
|
22
|
+
float4 _attenuationParameters;
|
|
23
|
+
float4 _constantColor;
|
|
24
|
+
|
|
25
|
+
struct VertexInput
|
|
26
|
+
{
|
|
27
|
+
uint vertexID : SV_VertexID;
|
|
28
|
+
UNITY_VERTEX_INPUT_INSTANCE_ID // Needed for single-pass instanced VR.
|
|
29
|
+
UNITY_VERTEX_OUTPUT_STEREO // Needed for VR.
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
struct VertexOutput
|
|
33
|
+
{
|
|
34
|
+
float4 positionClip : SV_POSITION; // Position in clip space
|
|
35
|
+
#ifdef HAS_POINT_NORMALS
|
|
36
|
+
float3 normalWC : TEXCOORD0; // Normal in world space. Using TEXCOORD0 because there's no 'NORMAL' semantic.
|
|
37
|
+
#endif
|
|
38
|
+
#ifdef HAS_POINT_COLORS
|
|
39
|
+
uint packedColor : COLOR_0; // Packed vertex color
|
|
40
|
+
#endif
|
|
41
|
+
UNITY_VERTEX_INPUT_INSTANCE_ID // Needed for single-pass instanced VR.
|
|
42
|
+
UNITY_VERTEX_OUTPUT_STEREO // Needed for VR.
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
VertexOutput Vertex(VertexInput input) {
|
|
46
|
+
VertexOutput output;
|
|
47
|
+
|
|
48
|
+
#ifdef INSTANCING_ON
|
|
49
|
+
UNITY_SETUP_INSTANCE_ID(input);
|
|
50
|
+
UNITY_TRANSFER_INSTANCE_ID(input, output);
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(input);
|
|
54
|
+
UNITY_TRANSFER_VERTEX_OUTPUT_STEREO(input, output);
|
|
55
|
+
|
|
56
|
+
uint vertexID = input.vertexID;
|
|
57
|
+
uint pointIndex = vertexID / 6;
|
|
58
|
+
uint vertexIndex = vertexID - (pointIndex * 6); // Modulo
|
|
59
|
+
|
|
60
|
+
Point inPoint = _inPoints[pointIndex];
|
|
61
|
+
|
|
62
|
+
float3 position = inPoint.position;
|
|
63
|
+
|
|
64
|
+
// Using the vertex ID saves us from creating extra attribute buffers
|
|
65
|
+
// for the corners. We can hardcode the corners of the quad as follows.
|
|
66
|
+
// (Unity uses clockwise vertex winding.)
|
|
67
|
+
// 1 ----- 2,4
|
|
68
|
+
// | / |
|
|
69
|
+
// | / |
|
|
70
|
+
// | / |
|
|
71
|
+
// 0,3 ---- 5
|
|
72
|
+
float2 offset;
|
|
73
|
+
|
|
74
|
+
if (vertexIndex == 0 || vertexIndex == 3)
|
|
75
|
+
{
|
|
76
|
+
offset = float2(-0.5, -0.5);
|
|
77
|
+
}
|
|
78
|
+
else if (vertexIndex == 1)
|
|
79
|
+
{
|
|
80
|
+
offset = float2(-0.5, 0.5);
|
|
81
|
+
}
|
|
82
|
+
else if (vertexIndex == 2 || vertexIndex == 4)
|
|
83
|
+
{
|
|
84
|
+
offset = float2(0.5, 0.5);
|
|
85
|
+
}
|
|
86
|
+
else
|
|
87
|
+
{
|
|
88
|
+
offset = float2(0.5, -0.5);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
float4 positionWC = mul(_worldTransform, float4(position, 1.0));
|
|
92
|
+
float4 positionEC = mul(unity_MatrixV, positionWC);
|
|
93
|
+
float4 positionClip = mul(unity_MatrixVP, positionWC);
|
|
94
|
+
float maximumPointSize = _attenuationParameters.x;
|
|
95
|
+
float geometricError = _attenuationParameters.y;
|
|
96
|
+
float depthMultiplier = _attenuationParameters.z;
|
|
97
|
+
float depth = -positionEC.z;
|
|
98
|
+
|
|
99
|
+
float pointSize = min((geometricError / depth) * depthMultiplier, maximumPointSize);
|
|
100
|
+
float2 pixelOffset = (pointSize * offset);
|
|
101
|
+
// Platforms can have different conventions of clip space (y-top vs. y-bottom).
|
|
102
|
+
// ProjectionParams.x will adjust the y-coordinate for clip space so that the output
|
|
103
|
+
// is the same across different platforms.
|
|
104
|
+
float2 screenOffset =
|
|
105
|
+
pixelOffset / float2(_ScreenParams.x, _ScreenParams.y * _ProjectionParams.x);
|
|
106
|
+
// The clip space position xy in Unity is in [-w, w] where w is the w-coordinate.
|
|
107
|
+
// Perspective divide with w is done between the vertex and fragment shaders.
|
|
108
|
+
positionClip.xy += screenOffset * positionClip.w;
|
|
109
|
+
output.positionClip = positionClip;
|
|
110
|
+
|
|
111
|
+
#ifdef HAS_POINT_COLORS
|
|
112
|
+
output.packedColor = inPoint.packedColor;
|
|
113
|
+
#endif
|
|
114
|
+
|
|
115
|
+
#ifdef HAS_POINT_NORMALS
|
|
116
|
+
float4 normalWC = mul(_worldTransform, float4(inPoint.normal, 0));
|
|
117
|
+
output.normalWC = normalWC;
|
|
118
|
+
#endif
|
|
119
|
+
|
|
120
|
+
return output;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
float4 Fragment(VertexOutput input) : SV_TARGET{
|
|
124
|
+
// The shadow caster pass renders to a shadow map, so we can ignore
|
|
125
|
+
// the color logic here.
|
|
126
|
+
#ifdef SHADOW_CASTER_PASS
|
|
127
|
+
return float4(1, 1, 1, 1);
|
|
128
|
+
#else
|
|
129
|
+
float4 color;
|
|
130
|
+
|
|
131
|
+
#ifdef HAS_POINT_COLORS
|
|
132
|
+
uint packedColor = input.packedColor;
|
|
133
|
+
uint r = packedColor & 255;
|
|
134
|
+
uint g = (packedColor >> 8) & 255;
|
|
135
|
+
uint b = (packedColor >> 16) & 255;
|
|
136
|
+
uint a = packedColor >> 24;
|
|
137
|
+
color = float4(r, g, b, a) / 255;
|
|
138
|
+
#else
|
|
139
|
+
color = _constantColor;
|
|
140
|
+
#endif
|
|
141
|
+
|
|
142
|
+
#ifdef HAS_POINT_NORMALS
|
|
143
|
+
float3 lightWC = _WorldSpaceLightPos0.xyz;
|
|
144
|
+
float3 lightColor = _LightColor0.rgb;
|
|
145
|
+
|
|
146
|
+
float3 normalWC = input.normalWC;
|
|
147
|
+
float NdotL = clamp(dot(normalWC, lightWC), 0.01, 1);
|
|
148
|
+
|
|
149
|
+
color.xyz *= lightColor * NdotL;
|
|
150
|
+
#endif
|
|
151
|
+
|
|
152
|
+
return color;
|
|
153
|
+
#endif
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
#endif
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!114 &-1954887611747806050
|
|
4
|
+
MonoBehaviour:
|
|
5
|
+
m_ObjectHideFlags: 11
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
m_GameObject: {fileID: 0}
|
|
10
|
+
m_Enabled: 1
|
|
11
|
+
m_EditorHideFlags: 0
|
|
12
|
+
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
|
13
|
+
m_Name:
|
|
14
|
+
m_EditorClassIdentifier:
|
|
15
|
+
version: 5
|
|
16
|
+
--- !u!21 &2100000
|
|
17
|
+
Material:
|
|
18
|
+
serializedVersion: 8
|
|
19
|
+
m_ObjectHideFlags: 0
|
|
20
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
21
|
+
m_PrefabInstance: {fileID: 0}
|
|
22
|
+
m_PrefabAsset: {fileID: 0}
|
|
23
|
+
m_Name: CesiumPointCloudShadingMaterial
|
|
24
|
+
m_Shader: {fileID: 4800000, guid: d45df2810b1301947b13f832049434ee, type: 3}
|
|
25
|
+
m_ValidKeywords: []
|
|
26
|
+
m_InvalidKeywords: []
|
|
27
|
+
m_LightmapFlags: 4
|
|
28
|
+
m_EnableInstancingVariants: 1
|
|
29
|
+
m_DoubleSidedGI: 0
|
|
30
|
+
m_CustomRenderQueue: -1
|
|
31
|
+
stringTagMap: {}
|
|
32
|
+
disabledShaderPasses: []
|
|
33
|
+
m_SavedProperties:
|
|
34
|
+
serializedVersion: 3
|
|
35
|
+
m_TexEnvs:
|
|
36
|
+
- _BaseMap:
|
|
37
|
+
m_Texture: {fileID: 0}
|
|
38
|
+
m_Scale: {x: 1, y: 1}
|
|
39
|
+
m_Offset: {x: 0, y: 0}
|
|
40
|
+
- _BumpMap:
|
|
41
|
+
m_Texture: {fileID: 0}
|
|
42
|
+
m_Scale: {x: 1, y: 1}
|
|
43
|
+
m_Offset: {x: 0, y: 0}
|
|
44
|
+
- _DetailAlbedoMap:
|
|
45
|
+
m_Texture: {fileID: 0}
|
|
46
|
+
m_Scale: {x: 1, y: 1}
|
|
47
|
+
m_Offset: {x: 0, y: 0}
|
|
48
|
+
- _DetailMask:
|
|
49
|
+
m_Texture: {fileID: 0}
|
|
50
|
+
m_Scale: {x: 1, y: 1}
|
|
51
|
+
m_Offset: {x: 0, y: 0}
|
|
52
|
+
- _DetailNormalMap:
|
|
53
|
+
m_Texture: {fileID: 0}
|
|
54
|
+
m_Scale: {x: 1, y: 1}
|
|
55
|
+
m_Offset: {x: 0, y: 0}
|
|
56
|
+
- _EmissionMap:
|
|
57
|
+
m_Texture: {fileID: 0}
|
|
58
|
+
m_Scale: {x: 1, y: 1}
|
|
59
|
+
m_Offset: {x: 0, y: 0}
|
|
60
|
+
- _MainTex:
|
|
61
|
+
m_Texture: {fileID: 0}
|
|
62
|
+
m_Scale: {x: 1, y: 1}
|
|
63
|
+
m_Offset: {x: 0, y: 0}
|
|
64
|
+
- _MetallicGlossMap:
|
|
65
|
+
m_Texture: {fileID: 0}
|
|
66
|
+
m_Scale: {x: 1, y: 1}
|
|
67
|
+
m_Offset: {x: 0, y: 0}
|
|
68
|
+
- _OcclusionMap:
|
|
69
|
+
m_Texture: {fileID: 0}
|
|
70
|
+
m_Scale: {x: 1, y: 1}
|
|
71
|
+
m_Offset: {x: 0, y: 0}
|
|
72
|
+
- _ParallaxMap:
|
|
73
|
+
m_Texture: {fileID: 0}
|
|
74
|
+
m_Scale: {x: 1, y: 1}
|
|
75
|
+
m_Offset: {x: 0, y: 0}
|
|
76
|
+
- _SpecGlossMap:
|
|
77
|
+
m_Texture: {fileID: 0}
|
|
78
|
+
m_Scale: {x: 1, y: 1}
|
|
79
|
+
m_Offset: {x: 0, y: 0}
|
|
80
|
+
- unity_Lightmaps:
|
|
81
|
+
m_Texture: {fileID: 0}
|
|
82
|
+
m_Scale: {x: 1, y: 1}
|
|
83
|
+
m_Offset: {x: 0, y: 0}
|
|
84
|
+
- unity_LightmapsInd:
|
|
85
|
+
m_Texture: {fileID: 0}
|
|
86
|
+
m_Scale: {x: 1, y: 1}
|
|
87
|
+
m_Offset: {x: 0, y: 0}
|
|
88
|
+
- unity_ShadowMasks:
|
|
89
|
+
m_Texture: {fileID: 0}
|
|
90
|
+
m_Scale: {x: 1, y: 1}
|
|
91
|
+
m_Offset: {x: 0, y: 0}
|
|
92
|
+
m_Ints: []
|
|
93
|
+
m_Floats:
|
|
94
|
+
- _AlphaClip: 0
|
|
95
|
+
- _Blend: 0
|
|
96
|
+
- _BumpScale: 1
|
|
97
|
+
- _ClearCoatMask: 0
|
|
98
|
+
- _ClearCoatSmoothness: 0
|
|
99
|
+
- _Cull: 2
|
|
100
|
+
- _Cutoff: 0.5
|
|
101
|
+
- _DetailAlbedoMapScale: 1
|
|
102
|
+
- _DetailNormalMapScale: 1
|
|
103
|
+
- _DstBlend: 0
|
|
104
|
+
- _EnvironmentReflections: 1
|
|
105
|
+
- _GlossMapScale: 0
|
|
106
|
+
- _Glossiness: 0
|
|
107
|
+
- _GlossyReflections: 0
|
|
108
|
+
- _Metallic: 0
|
|
109
|
+
- _OcclusionStrength: 1
|
|
110
|
+
- _Parallax: 0.005
|
|
111
|
+
- _QueueOffset: 0
|
|
112
|
+
- _ReceiveShadows: 1
|
|
113
|
+
- _Smoothness: 0.5
|
|
114
|
+
- _SmoothnessTextureChannel: 0
|
|
115
|
+
- _SpecularHighlights: 1
|
|
116
|
+
- _SrcBlend: 1
|
|
117
|
+
- _Surface: 0
|
|
118
|
+
- _WorkflowMode: 1
|
|
119
|
+
- _ZWrite: 1
|
|
120
|
+
m_Colors:
|
|
121
|
+
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
|
122
|
+
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
|
123
|
+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
|
124
|
+
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
|
125
|
+
m_BuildTextureStacks: []
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Shader "Hidden/Cesium/CesiumPointCloudShading"
|
|
2
|
+
{
|
|
3
|
+
Properties
|
|
4
|
+
{
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
SubShader
|
|
8
|
+
{
|
|
9
|
+
Tags {
|
|
10
|
+
"Queue" = "Geometry"
|
|
11
|
+
"RenderType" = "Opaque"
|
|
12
|
+
"RenderPipeline" = "UniversalPipeline"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
Blend [_SrcBlend] [_DstBlend]
|
|
16
|
+
|
|
17
|
+
Pass
|
|
18
|
+
{
|
|
19
|
+
Name "Lighting Pass"
|
|
20
|
+
Tags { "LightMode" = "UniversalForward"}
|
|
21
|
+
|
|
22
|
+
HLSLPROGRAM
|
|
23
|
+
|
|
24
|
+
#pragma target 4.5
|
|
25
|
+
|
|
26
|
+
#pragma multi_compile __ HAS_POINT_COLORS
|
|
27
|
+
#pragma multi_compile __ HAS_POINT_NORMALS
|
|
28
|
+
|
|
29
|
+
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS
|
|
30
|
+
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE
|
|
31
|
+
#pragma multi_compile _ _ADDITIONAL_LIGHTS
|
|
32
|
+
#pragma multi_compile _ _ADDITIONAL_LIGHTS_SHADOWS
|
|
33
|
+
#pragma multi_compile _ _SHADOWS_SOFT
|
|
34
|
+
|
|
35
|
+
#pragma multi_compile_instancing // Needed for single-pass instanced VR.
|
|
36
|
+
|
|
37
|
+
#pragma vertex Vertex
|
|
38
|
+
#pragma fragment Fragment
|
|
39
|
+
|
|
40
|
+
#include "CesiumPointCloudShading.hlsl"
|
|
41
|
+
|
|
42
|
+
ENDHLSL
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
Pass
|
|
46
|
+
{
|
|
47
|
+
|
|
48
|
+
Name "Shadow Pass"
|
|
49
|
+
Tags { "LightMode" = "ShadowCaster" }
|
|
50
|
+
|
|
51
|
+
HLSLPROGRAM
|
|
52
|
+
|
|
53
|
+
#pragma target 4.5
|
|
54
|
+
|
|
55
|
+
#pragma multi_compile __ HAS_POINT_COLORS
|
|
56
|
+
#pragma multi_compile __ HAS_POINT_NORMALS
|
|
57
|
+
|
|
58
|
+
// This sets up various keywords for different light types and shadow settings.
|
|
59
|
+
#pragma multi_compile_shadowcaster
|
|
60
|
+
|
|
61
|
+
#pragma multi_compile_instancing // Needed for single-pass instanced VR.
|
|
62
|
+
|
|
63
|
+
#pragma vertex Vertex
|
|
64
|
+
#pragma fragment Fragment
|
|
65
|
+
|
|
66
|
+
#define SHADOW_CASTER_PASS
|
|
67
|
+
|
|
68
|
+
#include "CesiumPointCloudShading.hlsl"
|
|
69
|
+
|
|
70
|
+
ENDHLSL
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|