mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 05:15:34 +00:00
addresses https://github.com/GarageGames/Torque3D/issues/1537 via the following:
908be4818f/Engine/source/materials/materialDefinition.cpp (L261)denotes power as sharpness, reflected in the size/falloff of a highlight halo *908be4818f/Engine/source/materials/materialDefinition.cpp (L264)denotes strength as overall brightness of highlights. ** *and sharpness of reflection if using a cubemap. ** reflected in cubemapped objects as also degree of 'reflection' vs diffuse/albedo coloration.
This commit is contained in:
parent
908be4818f
commit
9472bfd3ca
4 changed files with 8 additions and 8 deletions
|
|
@ -160,8 +160,8 @@ void DeferredSpecVarsHLSL::processPix( Vector<ShaderComponent*> &componentList,
|
|||
MultiLine * meta = new MultiLine;
|
||||
//matinfo.g slot reserved for AO later
|
||||
meta->addStatement(new GenOp(" @.g = 1.0;\r\n", material));
|
||||
meta->addStatement(new GenOp(" @.b = @/128;\r\n", material, specStrength));
|
||||
meta->addStatement(new GenOp(" @.a = @/5;\r\n", material, specPower));
|
||||
meta->addStatement(new GenOp(" @.a = @/128;\r\n", material, specPower));
|
||||
meta->addStatement(new GenOp(" @.b = @/5;\r\n", material, specStrength));
|
||||
output = meta;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue