ios - Open Gl ES clipping and Back Face Culling -
i need performance in project back, thought of implementing clipping , later on backface culling.
so looking in vertex shader if vertex facing me, if true, render , if not, not. how no render in vertex shader oo
same clipping how paint section in vertex shader, or wrong here, quit new open gl , project iphone, opengl es 2.0.
vertices don't face front or backward. when 3 or more vertices meet, plan (triangle) make face front or depending on convention (clock/anticlock).
you have enable culling , do nothing different in shaders.
some apis of interest are: (should more or less same in ios not 100% compliant ogles)
gldisable / glenable argument gl_cull_face glcullface argument gl_front, gl_back or gl_front_and_back glfrontface argument gl_cw or gl_ccw
Comments
Post a Comment