Commits

David Rogers committed 43ac15e

Bug 473: Fix Bump Mapping shaders in samples when SM4 is not supported

Comments (0)

Files changed (2)

Samples/Media/materials/programs/PassthroughFP.cg

 	return colour;
 }
 
-float4 mainCg
-(
-    in float4 inPos : POSITION,
-    out float4 pos : POSITION,
-    uniform float4 colour,
-    uniform float4x4 worldViewProj) : COLOR
+float4 mainCg (float4 colour0 : COLOR) : COLOR
 {
-    pos = mul(worldViewProj, inPos);
-
-    return colour;
+    return colour0;
 }
 
 float4 mainForAmbientOneTexture (float4 pos : POSITION, float2 oUv : TEXCOORD0, float4 colour0 : COLOR, uniform float4 colour) : COLOR

Samples/Media/materials/scripts/Examples.program

 {
 	entry_point mainCg
 	source PassthroughFP.cg
-	profiles vs_4_0 vs_1_1 arbvp1
-
-	default_params
-	{
-		param_named_auto worldViewProj worldviewproj_matrix
-	}
+	profiles ps_2_0 arbfp1
 }
 
 // A really basic ambient pass program, support for one texture coordinate set