Kaynağa Gözat

Rename Postion2DBlock

David `Deltakosh` Catuhe 5 yıl önce
ebeveyn
işleme
36a5ec89e1

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1700 - 1
dist/preview release/babylon.ktx2Decoder.js


+ 1 - 1
nodeEditor/src/blockTools.ts

@@ -351,7 +351,7 @@ export class BlockTools {
                 meshPosition.setAsAttribute("position");
                 return meshPosition;
             }
-            case "Position2DBlock": {
+            case "ScreenPositionBlock": {
                 let meshPosition = new InputBlock("position");
                 meshPosition.setAsAttribute("position2d");
                 return meshPosition;

+ 3 - 3
nodeEditor/src/components/nodeList/nodeListComponent.tsx

@@ -137,7 +137,7 @@ export class NodeListComponent extends React.Component<INodeListComponentProps,
         "ClearCoatBlock": "PBR ClearCoat block",
         "RefractionBlock": "PBR Refraction block",
         "SubSurfaceBlock": "PBR SubSurface block",
-        "Position2DBlock": "A Vector2 representing the position of each vertex of the screen quad",
+        "ScreenPositionBlock": "A Vector2 representing the position of each vertex of the screen quad (derived from UV set from the quad used to render)",
         "CurrentScreenBlock": "The screen buffer used as input for the post process",
         "ParticleUVBlock": "The particle uv texture coordinate",
         "ParticleTextureBlock": "The particle texture",
@@ -239,8 +239,8 @@ export class NodeListComponent extends React.Component<INodeListComponentProps,
             Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock"],
             Particle: ["ParticleBlendMultiplyBlock", "ParticleColorBlock", "ParticlePositionWorldBlock", "ParticleRampGradientBlock", "ParticleTextureBlock", "ParticleTextureMaskBlock", "ParticleUVBlock"],
             PBR: ["PBRMetallicRoughnessBlock", "AmbientOcclusionBlock", "AnisotropyBlock", "ClearCoatBlock", "ReflectionBlock", "ReflectivityBlock", "RefractionBlock", "SheenBlock", "SubSurfaceBlock"],
-            PostProcess: ["Position2DBlock", "CurrentScreenBlock"],
-            Procedural__Texture: ["Position2DBlock"],
+            PostProcess: ["ScreenPositionBlock", "CurrentScreenBlock"],
+            Procedural__Texture: ["ScreenPositionBlock"],
             Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
             Round: ["RoundBlock", "CeilingBlock", "FloorBlock"],
             Scene: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ViewDirectionBlock"],