Skip to main content

All Questions

Tagged with
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: ...
Rainma22's user avatar
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 ...
devthedevel's user avatar
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 ...
zimspy's user avatar
  • 357
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. ...
grimrader22's user avatar
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 ...
Vadim Ostanin's user avatar
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: ...
Neerkoli's user avatar
  • 509
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 ...
Charanor's user avatar
  • 8,463
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 ...
Steven Landow's user avatar
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. ...
HaMMeReD's user avatar
  • 216