Original Post
Hi all Im just trying to put a texture onto a mesh in render monkey and im getting this result:
The texture is sopose to be a rock wall texture. Heres the code: //////////////////////////////////// float4x4 matViewProjection; struct VS_OUTPUT { float4 Position : POSITION; float2 Txr1 : TEXCOORD0; }; VS_OUTPUT vs_main( float4 inPos : POSITION, float2 Txr1 : TEXCOORD0 ) { VS_OUTPUT Output; Output.Position = mul( inPos, matViewProjection ); Output.Txr1 = Txr1; return( Output ); } sampler Texture0; float4 ps_main( float4 inDiffuse: COLOR0, float2 inTxr1: TEXCOORD0 ) : COLOR0 { // Output the color taken from our texture return tex2D(Texture0,inTxr1); } /////////////////////////////////////////// Thanks for any help.
The texture is sopose to be a rock wall texture. Heres the code: //////////////////////////////////// float4x4 matViewProjection; struct VS_OUTPUT { float4 Position : POSITION; float2 Txr1 : TEXCOORD0; }; VS_OUTPUT vs_main( float4 inPos : POSITION, float2 Txr1 : TEXCOORD0 ) { VS_OUTPUT Output; Output.Position = mul( inPos, matViewProjection ); Output.Txr1 = Txr1; return( Output ); } sampler Texture0; float4 ps_main( float4 inDiffuse: COLOR0, float2 inTxr1: TEXCOORD0 ) : COLOR0 { // Output the color taken from our texture return tex2D(Texture0,inTxr1); } /////////////////////////////////////////// Thanks for any help.