Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ShaderInclude¶
Inherits: Resource < RefCounted < Object
A snippet of shader code to be included in a Shader with #include
.
描述¶
A shader include file, saved with the .gdshaderinc
extension. This class allows you to define a custom shader snippet that can be included in a Shader by using the preprocessor directive #include
, followed by the file path (e.g. #include "res://shader_lib.gdshaderinc"
). The snippet doesn't have to be a valid shader on its own.
教程¶
属性¶
|
Property Descriptions¶
String code = ""
Returns the code of the shader include file. The returned text is what the user has written, not the full generated code used internally.