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

16 lines
657 B
Markdown

## Uniform
Qualifier đánh dấu biến chứa dữ liệu được gửi từ CPU sang GPU.
### Ví dụ
```glsl
uniform vec4 direction;
```
### Mô tả
Các biến ```uniform``` được gửi từ CPU sang cả 2 chương trình vertex shader và fragment shader chạy trên GPU. Giá trị của các biến này không thể thay đổi.
_The value is per primitive, so is useful for variables which remain constant along a primitive, frame or scene._
### Tham khảo thêm
[attribute](/glossary/?lan=vi&search=attribute), [const](/glossary/?lan=vi&search=const), [varying](/glossary/?lan=vi&search=varying), [Chương 03: Uniform](/03/?lan=vi)