🚧 checkpoint
parent
4faa272877
commit
56bc305f00
|
@ -553,6 +553,8 @@ fn main () {
|
||||||
unsafe {
|
unsafe {
|
||||||
gl::ColorMask (255, 255, 255, 255);
|
gl::ColorMask (255, 255, 255, 255);
|
||||||
gl::DepthMask (1);
|
gl::DepthMask (1);
|
||||||
|
gl::StencilFunc (gl::NOTEQUAL, 0, 1);
|
||||||
|
gl::StencilOp (gl::KEEP, gl::KEEP, gl::KEEP);
|
||||||
}
|
}
|
||||||
|
|
||||||
glezz::front_face (gl::CW);
|
glezz::front_face (gl::CW);
|
||||||
|
@ -572,10 +574,6 @@ fn main () {
|
||||||
|
|
||||||
glezz::uniform_3fv (unis [&ALBEDO], &pitch_colors [grass_index]);
|
glezz::uniform_3fv (unis [&ALBEDO], &pitch_colors [grass_index]);
|
||||||
|
|
||||||
unsafe {
|
|
||||||
gl::StencilFunc (gl::NOTEQUAL, 0, 1);
|
|
||||||
gl::StencilOp (gl::KEEP, gl::KEEP, gl::KEEP);
|
|
||||||
}
|
|
||||||
glezz::uniform_3fv (unis [&OBJECT_SPACE_LIGHT], &Vec3::from ((0.0, 0.0, 0.0)));
|
glezz::uniform_3fv (unis [&OBJECT_SPACE_LIGHT], &Vec3::from ((0.0, 0.0, 0.0)));
|
||||||
mesh_pitch.draw (attrs, grass_index);
|
mesh_pitch.draw (attrs, grass_index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue