From 766d1ef276044cb1a277e2283c14b7e0fa6bbc43 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Mon, 27 Jan 2020 18:14:10 +0300 Subject: Docs for some nodes in visual shader(part 2) --- doc/classes/VisualShaderNodeCubeMap.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/classes/VisualShaderNodeCubeMap.xml') diff --git a/doc/classes/VisualShaderNodeCubeMap.xml b/doc/classes/VisualShaderNodeCubeMap.xml index e90edd9420..fbc97b41a3 100644 --- a/doc/classes/VisualShaderNodeCubeMap.xml +++ b/doc/classes/VisualShaderNodeCubeMap.xml @@ -1,8 +1,10 @@ + A [CubeMap] sampling node to be used within the visual shader graph. + Translated to [code]texture(cubemap, vec3)[/code] in the shader language. Returns a color vector and alpha channel as scalar. @@ -10,22 +12,30 @@ + The [CubeMap] texture to sample when using [constant SOURCE_TEXTURE] as [member source]. + Defines which source should be used for the sampling. See [enum Source] for options. + Defines the type of data provided by the source texture. See [enum TextureType] for options. + Use the [CubeMap] set via [member cube_map]. If this is set to [member source], the [code]samplerCube[/code] port is ignored. + Use the [CubeMap] sampler reference passed via the [code]samplerCube[/code] port. If this is set to [member source], the [member cube_map] texture is ignored. + No hints are added to the uniform declaration. + Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion. + Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map. -- cgit v1.2.3