Container component for defining shader code used by CustomMaterials and Effects. 更多...
import 语句: | import QtQuick3D 1.15 |
shader : string |
Specifies the name of the shader source file.
stage : enumeration |
Specifies the shader stage. The default is
Shader.Shared
常量 | 描述 |
---|---|
Shader.Shared
|
The shader can be shared among different stages |
Shader.Vertex
|
The shader is a vertex shader |
Shader.Fragment
|
The shader is a fragment shader |
Shader.Geometry
|
The shader is a geometry shader |
Shader.Compute
|
The shader is a compute shader |