Render Mode

From LuaSTG Wiki
Jump to navigation Jump to search
Basic Information
基本信息
基本情報
Name
名称
名前
Render Mode
Type
类别
タイプ
Graphics
Applicable Version
适用版本
適用バージョン
LuaSTG-x
Render mode is a substitute for blend mode in LuaSTGPlus. It consists of two parts: one part is a shader program, the other part specifies how fragments blend with the buffer. This changs happens because LuaSTG-x uses programmable pipline instead of fixed pipline.

The engine provides several render modes, they can be specified by name. Custom render modes can also be created.

Engine-provided render modes
渲染模式是LuaSTGPlus中混合模式的替代。包含两部分:一部分为着色器程序,另一部分指定片段如何与缓冲区混合。发生这一改变的原因是LuaSTG-x使用了可编程渲染管线而非固定管线。

引擎提供了若干渲染模式,使用时以名称进行指定。用户也可创建自定义渲染模式。

引擎提供的混合模式
Render mode is a substitute for blend mode in LuaSTGPlus. It consists of two parts: one part is a shader program, the other part specifies how fragments blend with the buffer. This changs happens because LuaSTG-x uses programmable pipline instead of fixed pipline.

The engine provides several render modes, they can be specified by name. Custom render modes can also be created.

Engine-provided render modes
Name
名称
Name
Description
描述
Description
""
Equals to "mul+alpha", default mode
等同于 "mul+alpha",默认模式
Equals to "mul+alpha", default mode
"mul+add"
Multiplication for vertex color, addition for blend
顶点颜色使用乘法,混合使用加法
Multiplication for vertex color, addition for blend
"mul+alpha"
Multiplication for vertex color, alpha for blend
顶点颜色使用乘法,混合使用alpha
Multiplication for vertex color, alpha for blend
"mul+sub"
Multiplication for vertex color, subtraction for blend
顶点颜色使用乘法,混合使用减法
Multiplication for vertex color, subtraction for blend
"mul+rev"
Multiplication for vertex color, reverse subtraction for blend
顶点颜色使用乘法,混合使用反向减法
Multiplication for vertex color, reverse subtraction for blend
"add+add"
Addition for vertex color, addition for blend
顶点颜色使用加法,混合使用加法
Addition for vertex color, addition for blend
"add+alpha"
Addition for vertex color, alpha for blend
顶点颜色使用加法,混合使用alpha
Addition for vertex color, alpha for blend
"add+sub"
Addition for vertex color, subtraction for blend
顶点颜色使用加法,混合使用减法
Addition for vertex color, subtraction for blend
"add+rev"
Addition for vertex color, reverse subtraction for blend
顶点颜色使用加法,混合使用反向减法
Addition for vertex color, reverse subtraction for blend