cube tests

This commit is contained in:
biglyderv 2025-03-04 22:32:32 -05:00
parent 7caf01a4ae
commit 6be7f85b93
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
3 changed files with 66 additions and 35 deletions

View file

@ -36,7 +36,7 @@
// gl_FragColor is a special variable a fragment shader
// is responsible for setting
if (is_fg) {
gl_FragColor = vec4(b_position.xyz,1) * 0.2 + vec4(0.3,0.3,0.3,1) * 0.8;
gl_FragColor = vec4(b_position.xyz*0.1,1) * 0.2 + vec4(0.3,0.3,0.3,1) * 0.8;
return;
}
float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing + dist_thing) / log(2.0) * 0.1;
@ -47,8 +47,9 @@
<script src="/js/cube.js"></script>
<script src="/js/mat.js"></script>
<script src="/js/twgl.min.js" type="module"></script>
<script src="/js/index.js" type="module"></script>
<script src="/js/twgl.min.js"></script>
<script src="/js/idle.js" defer></script>
<script src="/js/index.js" defer></script>
<link rel="stylesheet" href="main.css">
</head>