mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Remove uncompleted stuff
This commit is contained in:
@@ -9,10 +9,10 @@ out vec4 color_out;
|
||||
|
||||
void main() {
|
||||
lowp vec4 tex = texture(texture_sampler, var_texcoord0.xy);
|
||||
|
||||
if (tex.a < 0.5) {
|
||||
discard;
|
||||
}
|
||||
|
||||
// Final color of stencil texture
|
||||
color_out = tex * var_color;
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
name: "repeat"
|
||||
tags: "gui"
|
||||
vertex_program: "/druid/materials/stencil/gui_stencil.vp"
|
||||
vertex_program: "/builtins/materials/gui.vp"
|
||||
fragment_program: "/druid/materials/stencil/gui_stencil.fp"
|
||||
vertex_constants {
|
||||
name: "view_proj"
|
||||
|
@@ -1,20 +0,0 @@
|
||||
#version 140
|
||||
|
||||
uniform vertex_inputs {
|
||||
highp mat4 view_proj;
|
||||
};
|
||||
|
||||
// positions are in world space
|
||||
in mediump vec3 position;
|
||||
in mediump vec2 texcoord0;
|
||||
in lowp vec4 color;
|
||||
|
||||
out mediump vec2 var_texcoord0;
|
||||
out lowp vec4 var_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
var_texcoord0 = texcoord0;
|
||||
var_color = vec4(color.rgb * color.a, color.a);
|
||||
gl_Position = view_proj * vec4(position.xyz, 1.0);
|
||||
}
|
Reference in New Issue
Block a user