Home
last modified time | relevance | path

Searched refs:octOffset (Results 1 – 1 of 1) sorted by relevance

/frameworks/av/media/libstagefright/renderfright/gl/
DGLSkiaShadowPort.cpp246 float octOffset = 0.41421356237f; // sqrt(2) - 1 in fillInCircleVerts() local
249 position[vertexCount] = center + vec2(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
251 shadowParams[vertexCount] = vec3(-octOffset, -1, distanceCorrection); in fillInCircleVerts()
254 position[vertexCount] = center + vec2(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
256 shadowParams[vertexCount] = vec3(octOffset, -1, distanceCorrection); in fillInCircleVerts()
259 position[vertexCount] = center + vec2(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
261 shadowParams[vertexCount] = vec3(1, -octOffset, distanceCorrection); in fillInCircleVerts()
264 position[vertexCount] = center + vec2(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
266 shadowParams[vertexCount] = vec3(1, octOffset, distanceCorrection); in fillInCircleVerts()
269 position[vertexCount] = center + vec2(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
[all …]