2
* This is a block comment
6
* This is a documentation comment block
7
* @param xxx does this (this is the documentation keyword)
8
* @authr some user (this is the documentation keyword error)
12
float3 Position : POSITION;
13
float3 Normal : NORMAL;
17
float4 Hposition : POSITION;
18
float4 Color0 : COLOR0;
19
float4 TexCoord0 : TEXCOORD0;
20
float4 TexCoord1 : TEXCOORD1;
24
out_to_fp main( input IN,
25
uniform float4x4 WorldViewProj,
26
uniform float4x4 TexTransform,
27
uniform float3x3 WorldIT,
28
uniform float3 LightVec )
31
float3 worldNormal = normalize(mul(WorldIT, IN.Normal));
32
float ldotn = max(dot(LightVec, worldNormal), 0.0);
33
OUT.Color0.xyz = ldotn.xxx;
35
tempPos.xyz = IN.Position.xyz;
37
OUT.TexCoord0 = mul(TexTransform, tempPos);
38
OUT.TexCoord1 = mul(TexTransform, tempPos);
39
OUT.Hposition = mul(WorldViewProj, tempPos);
b'\\ No newline at end of file'