glsl函数之通用函数
abs
Return the absolute value of the parameter.
float abs(float x)
vec2 abs(vec2 x)
vec3 abs(vec3 x)
vec4 abs(vec4 x)
sign
Extract the sign of the parameter
float sign(float x)
vec2 sign(vec2 x)
vec3 sign(vec3 x)
vec4 sign(vec4 x)
floor
Find the nearest integer less than or equal to the parameter
float floor(float x)
vec2 floor(vec2 x)
vec3 floor(vec3 x)
vec4 floor(vec4 x)



最低0.47元/天 解锁文章
1592

被折叠的 条评论
为什么被折叠?



