diff options
| author | DrNuget <drnuget@outlook.com> | 2026-01-07 04:58:54 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2026-01-07 04:58:54 +0200 |
| commit | 7f3aa1cff755d21d972457b05c140cf465b9fa19 (patch) | |
| tree | 748b74a65d71ead9d0d7ade533074c5a643076d7 /src/shaders/test.frag | |
| parent | 67592a66dd9bcc4d79d23624a9abfd8f2c6e92ff (diff) | |
| download | mnm-7f3aa1cff755d21d972457b05c140cf465b9fa19.tar.gz | |
some basic 3D rendering and the base for chunk generation etc.
Diffstat (limited to 'src/shaders/test.frag')
| -rw-r--r-- | src/shaders/test.frag | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/shaders/test.frag b/src/shaders/test.frag new file mode 100644 index 0000000..38fd1f0 --- /dev/null +++ b/src/shaders/test.frag @@ -0,0 +1,17 @@ +#version 330 core + +out vec4 FragColor; + +in vec4 vertexColor; +in vec4 lightColor; + +void main() +{ +// float ambientStrength = 0.8; +// vec3 lightColor = vec3(0.5, 0.5, 0.5); +// +// vec3 ambient = ambientStrength * lightColor; +// +// FragColor = vec4(ambient, 1.0) * vertexColor; + FragColor = vertexColor * lightColor; +} |
