Template:MatParamDef/doc/zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{lang|Template:MatParam}}[[Category:Templates:zh-cn]]
{{doc/subpage}}
本模板是用于[[material|材质]][[shader|着色器]]页面生成材质着色器参数定义的。
本模板是用于[[material|材质]][[shader|着色器]]页面生成材质着色器参数定义的。


Line 32: Line 32:
* [[Template:I]]
* [[Template:I]]
* [[Template:O]]
* [[Template:O]]
<hr>
<onlyinclude>; {{#if: {{{deprecated|}}} | <del> }}<code>{{{1}}}</code> {{#if: {{{to|}}} | <span style="font-weight: normal;">到</span> <code>{{{to}}}</code> }} {{#if: {{{and|}}} | <span style="font-weight: normal;">和</span> <code>{{{and}}}</code> }} {{#if: {{{2|}}} | {{KV Type:zh-cn|{{{2}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since|}}} | &nbsp;{{{{{since}}} add}} }}{{#if: {{{only|}}} | &nbsp;{{{{{only}}} only}} }} {{#if: {{{also|}}} | &nbsp;{{{{{also}}} also}} }} {{#if: {{{dx8|}}} | &nbsp;{{Dx8}} }} {{#if: {{{dx9|}}} | &nbsp;{{Dx9}} }} {{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
: {{#if: {{{deprecated|}}} | 已作废。&nbsp; }} {{#if: {{{3|}}} | {{{3}}} }}</onlyinclude>

Revision as of 12:17, 23 August 2025

Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}}
Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}} Template loop detected: Template:MatParam:zh-cn
since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}} Template loop detected: Template:MatParam:zh-cn
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} Template loop detected: Template:MatParam:zh-cn
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}} Template loop detected: Template:MatParam:zh-cn
dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}} Template loop detected: Template:MatParam:zh-cn
to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}} Template loop detected: Template:MatParam:zh-cn
and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}} Template loop detected: Template:MatParam:zh-cn

参见

since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}}
Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}} Template loop detected: Template:MatParam:zh-cn
since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}} Template loop detected: Template:MatParam:zh-cn
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} Template loop detected: Template:MatParam:zh-cn
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}} Template loop detected: Template:MatParam:zh-cn
dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}} Template loop detected: Template:MatParam:zh-cn
to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}} Template loop detected: Template:MatParam:zh-cn
and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}} Template loop detected: Template:MatParam:zh-cn

参见

also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}}
Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}} Template loop detected: Template:MatParam:zh-cn
since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}} Template loop detected: Template:MatParam:zh-cn
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} Template loop detected: Template:MatParam:zh-cn
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}} Template loop detected: Template:MatParam:zh-cn
dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}} Template loop detected: Template:MatParam:zh-cn
to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}} Template loop detected: Template:MatParam:zh-cn
and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}} Template loop detected: Template:MatParam:zh-cn

参见

only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}}
Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}} Template loop detected: Template:MatParam:zh-cn
since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}} Template loop detected: Template:MatParam:zh-cn
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} Template loop detected: Template:MatParam:zh-cn
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}} Template loop detected: Template:MatParam:zh-cn
dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}} Template loop detected: Template:MatParam:zh-cn
to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}} Template loop detected: Template:MatParam:zh-cn
and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}} Template loop detected: Template:MatParam:zh-cn

参见

dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}}
Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}} Template loop detected: Template:MatParam:zh-cn
since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}} Template loop detected: Template:MatParam:zh-cn
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} Template loop detected: Template:MatParam:zh-cn
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}} Template loop detected: Template:MatParam:zh-cn
dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}} Template loop detected: Template:MatParam:zh-cn
to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}} Template loop detected: Template:MatParam:zh-cn
and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}} Template loop detected: Template:MatParam:zh-cn

参见

to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}}
Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}} Template loop detected: Template:MatParam:zh-cn
since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}} Template loop detected: Template:MatParam:zh-cn
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} Template loop detected: Template:MatParam:zh-cn
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}} Template loop detected: Template:MatParam:zh-cn
dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}} Template loop detected: Template:MatParam:zh-cn
to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}} Template loop detected: Template:MatParam:zh-cn
and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}} Template loop detected: Template:MatParam:zh-cn

参见

and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}}
Edit-copy.png
This is a documentation subpage for Template:MatParamDef.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

本模板是用于材质着色器页面生成材质着色器参数定义的。

基本用法

{{MatParam:zh-cn|名称|变量类型|描述}}

Note.png注意:记得使用Template:=来转义所有的「=」字符。

预设的参数

参数 描述 例子 预览
deprecated 该材质参数已作废,不宜继续使用。 {{MatParam:zh-cn|I'm deprecated|布尔值|真的,不要再用我啦!|deprecated=1}} Template loop detected: Template:MatParam:zh-cn
since 该材质参数自该游戏起可以使用。它使用了模板{{<game> add}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Portal 2中使用!|since=AS}} Template loop detected: Template:MatParam:zh-cn
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{MatParam:zh-cn|$likealienswarm|布尔值|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} Template loop detected: Template:MatParam:zh-cn
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{MatParam:zh-cn|$lovealienswarm|布尔值|我只能在Alien Swarm中使用!|only=AS}} $lovealienswarm
dx9 该材质参数要求DX9以上才能运行。 {{MatParam:zh-cn|$dx9parameter|布尔值|我要求DX9才能运行!|dx9=1}} Template loop detected: Template:MatParam:zh-cn
dx8 该材质参数是给DX8用的,不宜被用于DX9。 {{MatParam:zh-cn|$dx8parameter|布尔值|我是一个给DX8用的材质参数!|dx8=1}} Template loop detected: Template:MatParam:zh-cn
to 使用这个来定义一系列名字很相似的材质参数。 {{MatParam:zh-cn|$basetexture1|to=$basetexture4|纹理|我们有许多……}} Template loop detected: Template:MatParam:zh-cn
and 使用这个来定义两个名字很相似的材质参数。 {{MatParam:zh-cn|$bumpmap|and=$bumpmap2|纹理|两张法线贴图。}} Template loop detected: Template:MatParam:zh-cn

参见

参见