13 lines
205 B
Forth
13 lines
205 B
Forth
|
#version 430
|
||
|
|
||
|
layout (binding = 0) uniform sampler3D densities;
|
||
|
|
||
|
in vec3 varTextureG;
|
||
|
|
||
|
out vec4 color;
|
||
|
|
||
|
void main(void) {
|
||
|
float f = texture(densities, varTextureG).r;
|
||
|
color = vec4(f, f, f, 1.0);
|
||
|
}
|