Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit 03f8f06

Browse files
committed
coloring for cube example
1 parent d73a73b commit 03f8f06

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cube/package/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def __init__(self, title, width, height):
3838
in vec3 pos;
3939
void main()
4040
{
41-
float l = dot(normalize(-pos), normalize(normal));
42-
fragColor = vec4(1.0) * (0.25 + abs(l) * 0.75);
41+
fragColor = vec4(abs(pos) * normal, 1.0);
4342
}
4443
""",
4544
)

0 commit comments

Comments
 (0)