Fix NeL Material script defaults, fix #166

This commit is contained in:
kaetemi 2014-07-28 18:31:40 +02:00
parent 0bcbb3f4aa
commit 1140181fe3

View file

@ -545,7 +545,7 @@ plugin material NelMaterial
rollout nelBasicParameters "NeL Basic Parameters" rolledUp:false rollout nelBasicParameters "NeL Basic Parameters" rolledUp:false
( (
Label lblNlbpA "NeL Material" align:#center across:3 Label lblNlbpA "NeL Material" align:#center across:3
Label lblNlbpB "http://dev.ryzom.com/" align:#center Label lblNlbpB "http://www.ryzomcore.org/" align:#center
CheckBox cbTwoSided "2-Sided" checked:false align:#right CheckBox cbTwoSided "2-Sided" checked:false align:#right
group "Standard Lighting" group "Standard Lighting"
@ -2211,6 +2211,18 @@ plugin material NelMaterial
on create do on create do
( (
-- Load from Standard
bTwoSided = delegate.twoSided
cAmbient = delegate.ambient
cDiffuse = delegate.diffuse
pOpacity = delegate.opacity
cSpecular = delegate.specular
pSpecularLevel = delegate.specularLevel
pGlossiness = delegate.glossiness
cSelfIllumColor = delegate.selfIllumColor
pSelfIllumAmount = delegate.selfIllumAmount
bUseSelfIllumColor = delegate.useSelfIllumColor
-- Single shader -- Single shader
loadShader ShaderSingleTexture loadShader ShaderSingleTexture
) )