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
Is there a way to check if player is with certain gun inside a shader?
Moderator: Graf Zahl
-
- Posts: 152
- Joined: Tue Oct 25, 2011 13:05
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Is there a way to check if player is with certain gun inside a shader?
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.
-
- Posts: 152
- Joined: Tue Oct 25, 2011 13:05
Re: Is there a way to check if player is with certain gun inside a shader?
oh ,well, is at least a way to get the camera and pitch?
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Is there a way to check if player is with certain gun inside a shader?
The camera position is passed to the shader which is needed for distance calculations. The pitch is not.