You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thebookofshaders/glossary/sign/README-vi.md

553 B

Sign

Extract the sign of the parameter

Các phiên bản

float sign(float x)  
vec2 sign(vec2 x)  
vec3 sign(vec3 x)  
vec4 sign(vec4 x)

Các tham số

x specify the value from which to extract the sign.

Mô tả

sign() returns -1.0 if x is less than 0.0, 0.0 if x is equal to 0.0, and +1.0 if x is greater than 0.0.

Tham khảo thêm

abs, Các hàm số cơ bản (Hàm hình dạng - Shape function)