python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Creating a waving surface in a shader
I created a waving surface in the vertex shader.
Vertex shader:
#version 300 es
precision lowp float;
uniform mat4 u_mvpMatrix;
uniform sampler2D s_texture;
in vec4 a_position;
out vec2 v_textureCoo...

alexrnov
Votes: 0
Answers: 1
WebGL: read from a texture and write the output to a second texture
I am using WebGL2. I have two programs. Program 1 renders my favorite triangle, in my favorite color, into a texture, for safe keeping.
Program 2 reads the output of program 1 (the first texture) and ...

Avery
Votes: 0
Answers: 1
dx12) Shader Constants goes wrong
As you can see, in PIX, Pipeline says there's right values on GPU, but when I debug Pixels, it uses wrong values without gZSplits[0].
And I Upload Values to GPU like this, and mZSplits is std::vecto...
Shark_Bladder
Votes: 0
Answers: 1
Implement lights and shadows in ShaderMaterial in Three.js r136
What is the current solution in r136 to blend lights, shadows and color in a ShaderMaterial ? I already found the solution for the fog support.
I found some examples in previous revision (r108) like t...

Sufhal
Votes: 0
Answers: 1