最終更新:2014-05-07 (水) 05:37:39 (3635d)
GLSL ES 1.00/組み込み関数
Top / GLSL ES 1.00 / 組み込み関数
Angle & Trigonometry Functions [8.1]
- radians?(degrees)
- degrees?(radians)
- sin?(angle)
- cos?(angle)
- tan?(angle)
- asin(x)
- acos(x)
- atan(y, x)
- atan(y_over_x)
Exponential Functions [8.2]
Common Functions [8.3]
- abs?(x)
- sign?(x)
- floor?(x)
- ceil(x)
- fract(x)
- mod?(x, y)
- mod?(x, floay)
- min?(x, y)
- min?(x, floay)
- max?(x, y)
- max?(x, floay)
- clamp?(x, minVal, maxVal)
- clamp?(x, floaminVal, floamaxVal)
- mix?(x, y, a)
- mix?(x, y, floaa)
- step?(edge, x)
- step?(floaedge, x)
- smoothstep?(edge0, edge1, x)
- smoothstep?(floaedge0, floaedge1, x)
Geometric Functions [8.4]
- float length?(x)
- float distance?(p0, p1)
- float dot(x, y)
- vec3? cross?(vec3 x, vec3 y)
- normalize?(x)
- faceforward?(N, I, Nref)
- reflect?(I, N)
- refract?(I, N, floaeta)
Matrix Functions [8.5]
- mamatrixCompMult?(max, may)
Vector Relational Functions [8.6]
- bvec? lessThan?(x, y)
- bvec? lessThanEqual?(x, y)
- bvec? greaterThan?(x, y)
- bvec? greaterThanEqual?(x, y)
- bvec? equal?(x, y)
- bvec? equal?(bvec x, bvec y)
- bvec? notEqual?(x, y)
- bvec? notEqual?(bvec x, bvec y)
- bool any?(bvec x)
- bool all?(bvec x)
- bvec? not?(bvec x)
Texture Lookup Functions [8.7]
Available only in vertex shaders.
- vec4 texture2DLod?(sampler2D sampler, vec2 coord, floalod)
- vec4 texture2DProjLod?(sampler2D sampler, vec3 coord, floalod)
- vec4 texture2DProjLod?(sampler2D sampler, vec4 coord, floalod)
- vec4 textureCubeLod?(samplerCube sampler, vec3 coord, floalod)
Available only in fragmenshaders.
- vec4 texture2D?(sampler2D sampler, vec2 coord, floabias)
- vec4 texture2DProj?(sampler2D sampler, vec3 coord, floabias)
- vec4 texture2DProj?(sampler2D sampler, vec4 coord, floabias)
- vec4 textureCube?(samplerCube sampler, vec3 coord, floabias)