Skip to content

Commit

Permalink
Merge pull request #984 from Azaezel/mBitsPerChannel_match_DX_OGL
Browse files Browse the repository at this point in the history
const U64 maxValPerChannel = (U64)1 << mBitsPerChannel;
  • Loading branch information
LuisAntonRebollo committed Nov 30, 2014
2 parents a6054fe + bea3563 commit c916e7d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -333,7 +333,7 @@ Var* GBufferConditionerGLSL::_conditionOutput( Var *unconditionedOutput, MultiLi
// Encode depth into two channels
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( avar( " float2 _tempDepth = frac(@.a * float2(1.0, %llu.0));\r\n", maxValPerChannel - 1 ),
unconditionedOutput ) );
Expand Down

0 comments on commit c916e7d

Please sign in to comment.