diff --git a/doc/classes/Shader.xml b/doc/classes/Shader.xml index 732881c7774..7c07778a052 100644 --- a/doc/classes/Shader.xml +++ b/doc/classes/Shader.xml @@ -1,10 +1,10 @@ - To be changed, ignore. + A custom shader program. - To be changed, ignore. + This class allows you to define a custom shader program that can be used for various materials to render objects. http://docs.godotengine.org/en/3.0/tutorials/shading/index.html @@ -24,6 +24,7 @@ + Returns the shader mode for the shader, eiter [code]MODE_CANVAS_ITEM[/code], [code]MODE_SPATIAL[/code] or [code]MODE_PARTICLES[/code] diff --git a/doc/classes/ShaderMaterial.xml b/doc/classes/ShaderMaterial.xml index 4767686a8f2..058e00e46ce 100644 --- a/doc/classes/ShaderMaterial.xml +++ b/doc/classes/ShaderMaterial.xml @@ -1,8 +1,10 @@ + A material that uses a custom [Shader] program + A material that uses a custom [Shader] program to render either items to screen or process particles. You can create multiple materials for the same shader but configure different values for the uniforms defined in the shader. @@ -15,6 +17,7 @@ + Returns the current value set for this material of a uniform in the shader @@ -25,11 +28,13 @@ + Changes the value set for this material of a uniform in the shader + The [Shader] program used to render this material