more sg javascript options

This commit is contained in:
2024-10-03 09:31:06 -05:00
parent 5eac1d03e9
commit 26b42a6747
13 changed files with 266 additions and 144 deletions

View File

@@ -1,8 +1,3 @@
#blend mix
#depth off
#primitive triangle
#cull none
@vs vs
in vec3 a_pos;
in vec2 a_uv;

View File

@@ -1,6 +1,3 @@
#depth off
#blend mix
@vs vs
in vec2 a_pos;
in vec2 a_uv;

View File

@@ -1,6 +1,3 @@
#depth off
#blend mix
@vs vs
in vec2 a_pos;
in vec2 a_uv;

View File

@@ -1,8 +1,3 @@
#blend mix
#primitive triangle
#cull none
#depth off
@vs vert
in vec3 a_pos;

View File

@@ -1,5 +1,3 @@
#stencil write
@block vert
uniform vec4 rect;
@@ -16,7 +14,7 @@ void frag()
{
color = texture(sampler2D(diffuse,smp), uv);
if (color.a == 0.0) discard;
color = vec4(1.0);
color = vec4(0.0);
}
@end

View File

@@ -1,8 +1,3 @@
#depth off
#blend mix
#primitive triangle
#cull none
@vs vs
in vec3 a_pos;
uniform mat4 vp;

View File

@@ -1,8 +1,3 @@
#depth off
#blend mix
#primitive triangle
#cull none
@vs vs
in vec3 a_pos;
uniform mat4 vp;

View File

@@ -1,5 +1,3 @@
#cull back
@vs vs
in vec3 a_pos;
in vec2 a_uv;

View File

@@ -1,8 +1,3 @@
#blend mix
#depth off
#primitive triangle
#cull none
@vs vs
in vec3 a_pos;
in vec2 a_uv;