New answers tagged

2 votes

GLSL ported shader not working in HLSL

Given that it works when resizing the window, I wonder if there's some kind of issue outside of the shader code. Resizing the window will probably be re-creating some render targets, so maybe you need ...
Adam's user avatar
  • 7,346
0 votes
Accepted

How to setup gradient lighting in OpenGL shader?

I managed to do it. The key is to use diffusion and ambient light values. If the distance is less than radius of target lightened area, the light should be diffused and combined with ambient. In case ...
Steyrix's user avatar
  • 203
0 votes

GLSL limit uniform sampler2D to 4 for some reason

The issue is caused by exceeding the maximum number of active samplers. Removing a texture allows the occlusion texture to work because the total number of active samplers decreases. Ensure proper ...
X64X2's user avatar
  • 49

Top 50 recent answers are included