Page 1 of 1
Is there a way to check if player is with certain gun inside a shader?
Posted: Wed Aug 03, 2016 17:37
by ibm5155
or some true/false var that a shader could check that was send by the player?
I plan (if pocible) to introduce inside the float R_DoomLightingEquation(float light) function a flash light function
Re: Is there a way to check if player is with certain gun inside a shader?
Posted: Wed Aug 03, 2016 20:18
by Graf Zahl
No. The shader has no means to access game data. If you need that you'll have to change the engine and add a new shader parameter.
Re: Is there a way to check if player is with certain gun inside a shader?
Posted: Thu Aug 04, 2016 1:36
by ibm5155
oh
,well, is at least a way to get the camera and pitch?
Re: Is there a way to check if player is with certain gun inside a shader?
Posted: Thu Aug 04, 2016 7:15
by Graf Zahl
The camera position is passed to the shader which is needed for distance calculations. The pitch is not.