texture.cfg

来自「大型多人在线游戏开发,该书光盘上附带的源码」· CFG 代码 · 共 16 行

CFG
16
字号
# [TextureName]                   // The texture name is used as the INI section
# File=FileName                   // Either a file can be specified to load the texture
# Effect=Glow(size,exposure)      // Or an effect can be specified to calculate it
# Alpha=255                       // The alpha component can be set explicitly for the texture
# AlphaMapx=R,G,B,A               // Or specific alpha values can be set for any RGB color
# AlphaFunc=Expose((R+G+B)/3,5)   // Or an alpha func can be specified using a logical expression

[Font]
File=Font.jpg
AlphaMap1=0,0,0,0

[Test]
File=Test.jpg
AlphaFunc=Smoothstep(0,1,(R+G+B)/3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?