mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Merge pull request #984 from Azaezel/mBitsPerChannel_match_DX_OGL
const U64 maxValPerChannel = (U64)1 << mBitsPerChannel;
This commit is contained in:
commit
c916e7de7c
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ Var* GBufferConditionerGLSL::_conditionOutput( Var *unconditionedOutput, MultiLi
|
||||||
// Encode depth into two channels
|
// Encode depth into two channels
|
||||||
if(mNormalStorageType != CartesianXYZ)
|
if(mNormalStorageType != CartesianXYZ)
|
||||||
{
|
{
|
||||||
const U64 maxValPerChannel = 1 << mBitsPerChannel;
|
const U64 maxValPerChannel = (U64)1 << mBitsPerChannel;
|
||||||
meta->addStatement( new GenOp( " \r\n // Encode depth into hi/lo\r\n" ) );
|
meta->addStatement( new GenOp( " \r\n // Encode depth into hi/lo\r\n" ) );
|
||||||
meta->addStatement( new GenOp( avar( " float2 _tempDepth = frac(@.a * float2(1.0, %llu.0));\r\n", maxValPerChannel - 1 ),
|
meta->addStatement( new GenOp( avar( " float2 _tempDepth = frac(@.a * float2(1.0, %llu.0));\r\n", maxValPerChannel - 1 ),
|
||||||
unconditionedOutput ) );
|
unconditionedOutput ) );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue