Well I've solved the problem now.  You need to have DX9 defined for it
to actually use all the vertexlit shader code in CBaseVSShader so I
added it to the preprocessor definitions in the project options and
everything worked fine.  Also the code refers to the HL2
vertexlitgeneric shader when it should refer to the SDK one in several
places.  Namely the shader include files in
basevsshader_vertexlitgeneric_dx9_helper.cpp and the names of the
shaders that are set in CBaseVSShader::DrawVertexLitAndUnlitGeneric_DX9.

Also I think that the 'No render states' error appears when you don't
setup the shader's shadow state correctly (in this case without DX9
defined the shadow state didn't get setup at all hence the error).

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greg
Chadwick
Sent: 05 December 2005 15:27
To: [email protected]
Subject: [hlcoders] Shader render states


This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
I've compile the SDK_VertexLitGeneric shader but when I attempt to use
it in-game I get a message saying "No render states in shader
'SDK_VertexLitGeneric_DX9' ", if I change the material is use just
VertexLitGeneric everything works fine so something must be wrong with
the supplied SDK code.  Does anyone know what's causing this error and a
way to fix it?
--



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders





_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to