🚧 checkpoint

main
_ 2020-03-08 16:56:20 +00:00
parent 4faa272877
commit 56bc305f00
1 changed files with 2 additions and 4 deletions

View File

@ -553,6 +553,8 @@ fn main () {
unsafe {
gl::ColorMask (255, 255, 255, 255);
gl::DepthMask (1);
gl::StencilFunc (gl::NOTEQUAL, 0, 1);
gl::StencilOp (gl::KEEP, gl::KEEP, gl::KEEP);
}
glezz::front_face (gl::CW);
@ -572,10 +574,6 @@ fn main () {
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)));
mesh_pitch.draw (attrs, grass_index);