¡@

Home 

2014/10/15 ¤U¤È 10:05:48

iphone Programming Glossary: currentdepthvalue

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

1.0 gl_FragColor vec4 1.0 else float calculatedDepth sqrt 1.0 distanceFromCenter distanceFromCenter mediump float currentDepthValue normalizedDepth adjustedSphereRadius calculatedDepth Inlined color encoding for the depth values float ceiledValue ceil.. adjustedSphereRadius calculatedDepth Inlined color encoding for the depth values float ceiledValue ceil currentDepthValue 765.0 vec3 intDepthValue vec3 ceiledValue scaleDownFactor stepValues gl_FragColor vec4 intDepthValue 1.0 On an iPad 1 this.. sphereDepthMap depthLookupCoordinate .ra float inCircleMultiplier step 0.5 precalculatedDepthAndAlpha.g float currentDepthValue normalizedDepth adjustedSphereRadius adjustedSphereRadius precalculatedDepthAndAlpha.r Inlined color encoding for the depth..