¡@

Home 

2014/10/15 ¤U¤È 10:03:30

iphone Programming Glossary: adjustedsphereradius

How can I improve the performance of my custom OpenGL ES 2.0 depth texture generation?

http://stackoverflow.com/questions/6051237/how-can-i-improve-the-performance-of-my-custom-opengl-es-2-0-depth-texture-gener

mediump float varying mediump vec2 impostorSpaceCoordinate varying mediump float normalizedDepth varying mediump float adjustedSphereRadius const vec3 stepValues vec3 2.0 1.0 0.0 const float scaleDownFactor 1.0 255.0 void main float distanceFromCenter length impostorSpaceCoordinate.. float calculatedDepth sqrt 1.0 distanceFromCenter distanceFromCenter mediump float currentDepthValue normalizedDepth adjustedSphereRadius calculatedDepth Inlined color encoding for the depth values float ceiledValue ceil currentDepthValue 765.0 vec3 intDepthValue.. mediump float varying mediump vec2 impostorSpaceCoordinate varying mediump float normalizedDepth varying mediump float adjustedSphereRadius void main gl_FragColor vec4 adjustedSphereRadius normalizedDepth impostorSpaceCoordinate 1.0 2.0 normalizedDepth 1.0 it..