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/max/README-vi.md

806 B

Max

Return the greater of two values

Các phiên bản

float max(float x, float y)  
vec2 max(vec2 x, vec2 y)  
vec3 max(vec3 x, vec3 y)  
vec4 max(vec4 x, vec4 y)

vec2 max(vec2 x, float y)  
vec3 max(vec3 x, float y)  
vec4 max(vec4 x, float y)

Các tham số

x specify the first value to compare.

y specify the second value to compare.

Mô tả

max() returns the maximum of the two parameters. It returns y if y is greater than x, otherwise it returns x.

Tham khảo thêm

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