Dagor 着色器语言 (DSHL) 文档
内容:
- 介绍
- 基本概念
- 通道
- 着色器
- 材质
- 通用指令
- 内部函数
- float time_phase(float period, float offset)
- float sin(float x)
- float cos(float x)
- float pow(float x, float y)
- float4 vecpow(float4 v, float a)
- float sqrt(float x)
- float min(float x, float y)
- float max(float x, float y)
- float fsel(float a, float b, float c)
- float4 sRGBread(float4 v)
- float4 get_dimensions(texture t, int mip)
- float get_size(buffer b)
- float4 get_viewport()
- int exists_tex(texture t)
- int exists_buf(buffer b)
- 全局常量
- 管线状态配置
- 关键字