◆ COPY
Initial value: 5 void vshader(float4 vtx_position : POSITION, 6 out float4 l_position : POSITION, 7 out float2 l_texcoord : TEXCOORD0, 8 uniform float4 texpad_src, 9 uniform float4x4 mat_modelproj) 11 l_position=mul(mat_modelproj, vtx_position); 12 l_texcoord = (vtx_position.xz * texpad_src.xy) + texpad_src.xy; 15 void fshader(float2 l_texcoord : TEXCOORD0, 16 uniform sampler2D k_src : TEXUNIT0, 17 out float4 o_color : COLOR) 19 o_color = tex2D(k_src, l_texcoord);