cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

tgraupmann
Journeyman III

[RESOLVED] [Video] RenderMonkey can't find variable (question)

Can't find lightPosition? in second pass

RenderMonkey can't find a uniform variable in the vertex program input.

What am I doing wrong here?

http://screencast.com/t/0V02Fw3A

 

This is my error output:

 

Constant '$lightPosition' was not found in the workspace.  Please create the node first and then add it as a constant.
Compiling vertex shader API(D3D) /../Textured/Pass 1/Vertex Shader/ ...success
RENDERING ERROR(s):
   Missing shader constant parameter named '$lightPosition' in vertex shader 'Vertex Shader' in pass 'Pass 1'

0 Likes
2 Replies
bpurnomo
Staff

Hello,

   What you want is to declare the variable outside the function and remove the variable as a parameter to the function.  You can look at some sample workspaces that came with the tool.

 

 

0 Likes

Okay thanks. That's what I did. I didn't see the output that I'm expecting, so I thought this was messing it up.

0 Likes