Creyn
11-11-2009 11:48:20
I'm attempting to use my PSSM shadow code with the grass
From my understanding, I need to override the material automatically generated for the grass with a rewritten vertex program based off BatchPage.cpp, and add in my shadow code. Is this correct?
What might this look like?
Here is me overriding the texture: (alpharejectionbase renders my shadowcode and omits the alpha)
^^ The error I get with this is:
Parameter called time does not exist. in GpuProgramParameters::_findNamedConstantDefinition
Which means I haven't implemented the vertex program code from BatchPage.cpp..
Now how/where exactly do I insert the code? Do I just add another vertex program to the material with the code from BatchPage?
Any help is greatly appreciated,
Chris
From my understanding, I need to override the material automatically generated for the grass with a rewritten vertex program based off BatchPage.cpp, and add in my shadow code. Is this correct?
What might this look like?
Here is me overriding the texture: (alpharejectionbase renders my shadowcode and omits the alpha)
material grass_GrassVS_anim_0_2_15.5_vp : PSSM/AlphaRejectionBase
{
set $AmbientDiffuseTexture "grass.png"
set $AmbientColour "1 1 1 1"
set $DiffuseColour "1 1 1 1"
}
^^ The error I get with this is:
Parameter called time does not exist. in GpuProgramParameters::_findNamedConstantDefinition
Which means I haven't implemented the vertex program code from BatchPage.cpp..
Now how/where exactly do I insert the code? Do I just add another vertex program to the material with the code from BatchPage?
Any help is greatly appreciated,
Chris