glsl hlsl document

 https://docs.gl/el3/sign

sign

sign — extract the sign of the parameter

Declaration

genType sign(genType x);
genIType sign(genIType x);

Parameters

x

Specify the value from which to extract the sign.

Description

sign returns -1.0 if x<0.0, 0.0 if x=0.0 and 1.0 if x>0.0.

Version Support

OpenGL ES Shading Language Version
Function Name1.003.003.10
sign (genType)
sign (genIType)-

댓글

이 블로그의 인기 게시물

About AActor!!! "UObject" has no member "BeginPlay"

UNREAL Android build information

Shader informations nice blog ~ ~