All Questions
9 questions
2
votes
1
answer
345
views
LIBGDX ShaderProgram not passing uniforms
I'm trying to implement a Shader that turns any RGB values below 190 into black.
LIBGDX code:
...
0
votes
1
answer
2k
views
Getting solid black color when texture is added to GLSL
I'm trying to apply the default badlogic.jpg image to a .obj I have. I'm currently loading the texture from AssetManager and creating a material with a texture ...
3
votes
0
answers
580
views
Combine a light and water shader in libgdx glsl
I am trying to combine a light shader with a water shader in libgdx. Shader programming is not one of my strengths at all.
This is the water effect rendering nicely:
And when I have added the ...
4
votes
2
answers
296
views
Fine tuning light shader mechanics
I'm currently trying to implement the lighting technique described in this article.
I've done pretty much exactly what is done in the article. My technique is the same, and my shader is the same. ...
0
votes
1
answer
271
views
LibGdx, I moved ShapeRenderer projection matrix, but shadered waves did not move
I am use Libgdx with ShapeRenderer to draw rect and shaders passed to ShapeRenderer, to draw a waves. In game I made pseudo-parallax effect by changing projection matrix in SpriteBatches. But in ...
4
votes
1
answer
739
views
LibGDX: Shader files in assets - Access is Denied
I stored the glsl files in android -> assets -> shaders directory, but when I run the app, an error is displayed:
...
2
votes
1
answer
1k
views
Shader only rendering 1/4th of the screen
I've asked the same question on SO here and they suggested I should ask here instead.
I'm currently trying to create a gaussian blur shader, and while I've successfully created the blur effect my ...
3
votes
1
answer
2k
views
How to deal with overlapping black parts of Light mask textures?
I am using this masking texture for a dynamic lighting effect in my game:
It looks beautiful until two lights begin to overlap:
This is obviously because the textures are overlapping when I draw them ...
2
votes
1
answer
142
views
Uniform not being applied to proper mesh [closed]
Ok, I got some code, and you select blocks on a grid.
The selection works. I can modify the blocks to be raised when selected and the correct one shows.
I set a color which I use in the shader. ...