Просмотр исходного кода

convert tabs to blanks in FixedScale100.frag

Stephen Gold 5 лет назад
Родитель
Сommit
415a52df51

+ 6 - 6
jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Common/FixedScale100.frag

@@ -1,8 +1,8 @@
 void main(){
-	vec4 worldPos = worldMatrix * vec4(0.0, 0.0, 0.0, 1.0);
-	vec3 dir = worldPos.xyz - cameraPos;
-	float distance = dot(cameraDir, dir);
-	float m11 = projectionMatrix[1][1];
-	float halfHeight = (viewport.w - viewport.y) * 0.5;	
-	scale = ((distance/halfHeight) * spriteHeight)/m11;
+    vec4 worldPos = worldMatrix * vec4(0.0, 0.0, 0.0, 1.0);
+    vec3 dir = worldPos.xyz - cameraPos;
+    float distance = dot(cameraDir, dir);
+    float m11 = projectionMatrix[1][1];
+    float halfHeight = (viewport.w - viewport.y) * 0.5;
+    scale = ((distance/halfHeight) * spriteHeight)/m11;
 }