跳转到内容

shimport

上下文环境fog surface

此函数仅在illuminance循环内部有效。

int  shimport(string variable_name, <type>&value)

variable_name

要从阴影着色器导入的变量名。

value

如果变量读取成功,其值将被复制到此变量中。

返回值

如果变量已定义且可导出则返回1,否则返回0