Fixing some stuff
This commit is contained in:
1 parent
0ce48eaf8f
commit
bfdbf06328
9 files changed
+39118
-29
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 133 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 613 KiB |
Executable
+12270
File diff suppressed because it is too large.
Load diff
Executable
+26587
File diff suppressed because it is too large.
Load diff
Executable
+16
@@ -0,0 +1,16 @@
|
||||
precision mediump float;
|
||||
|
||||
|
||||
uniform float Transparency;
|
||||
uniform vec4 LightDirection;
|
||||
|
||||
varying vec3 fragNormal;
|
||||
varying vec3 fragColor;
|
||||
|
||||
void main() {
|
||||
vec4 color = vec4(fragColor.rgb, 1.0);
|
||||
|
||||
float intensity = clamp(dot(normalize(LightDirection.xyz), -normalize(fragNormal)), 0, 1);
|
||||
|
||||
gl_FragColor = vec4(color.rgb * intensity + vec3(0.2, 0.2, 0.2), color.a * Transparency);
|
||||
}
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
attribute vec3 vPosition;
|
||||
attribute vec3 Normal;
|
||||
attribute vec3 vColor;
|
||||
|
||||
uniform mat4 ProjectionMatrix;
|
||||
|
||||
varying vec3 fragNormal;
|
||||
varying vec3 fragColor;
|
||||
|
||||
void main() {
|
||||
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||
fragNormal = Normal;
|
||||
fragColor = vColor;
|
||||
}
|
||||
Reference in new issue
Block a user