着色器

Inherits: Resource < Reference < Object

继承人: VisualShader

类别: 核心

简要说明

自定义着色程序。

属性

String

code

方法

Texture

get_default_texture_param ( String param ) const

Mode

get_mode ( ) const

bool

has_param ( String name ) const

无效

set_default_texture_param ( String param, Texture texture )

枚举

枚举 Mode

  • MODE_SPATIAL = 0

  • MODE_CANVAS_ITEM = 1

  • MODE_PARTICLES = 2

描述

此类允许您定义一个自定义的着色程序,该程序可用于各种材质来渲染对象。

教程

属性描述

违约

设定器

设置代码(值)

吸气剂

获取代码()

方法说明

  • Mode get_mode ( ) const

返回该明暗器的明暗器模式,或者 MODE_CANVAS_ITEMMODE_SPATIALMODE_PARTICLES

  • void set_default_texture_param ( String param, Texture texture )