Jump to content

DOF Uniform not found?


ParaToxic
 Share

Recommended Posts

Hello i would like to include the DOF shader to my project.When i load the Shader and set the Uniforms dofnerrange and doffarrange in the logfile stand that this Uniforms don't exist in the shader.

Please help me.

 

TShader dof=LoadShader("abstract::postfilter.vert","abstract::postfilter_dof.frag");
   SetShaderVec2(dof,"dofnearrange",Vec2(10,15));
   SetShaderVec2(dof,"doffarrange",Vec2(25,30));

 

and in the logfile stand:

Warning: Uniform "dofnearrange" does not exist in shader.

Warning: Uniform "doffarrange" does not exist in shader.

 

What can i do?

Link to comment
Share on other sites

when you run the code, do you get the effect that you are wanting? just curious, because that is not the frag shader used with the inherent DOF command? But in any case, I would assume the warnings are from when you load the shader, those uniforms at that moment are not presently set.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...