Skip to content

Commit

Permalink
shaders: Port a sampler in common_functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Mar 7, 2016
1 parent 2984b64 commit 435918a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions res/gamedata/shaders/gl/common_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ gbuffer_data gbuffer_load_data( float2 tc, float2 pos2d, int iSample )
gbd.N = float3(0,0,0);

#ifndef USE_MSAA
float4 P = s_position.Sample( smp_nofilter, tc );
float4 P = tex2D( s_position, tc );
#else
float4 P = s_position.Load( int3( pos2d, 0 ), iSample );
float4 P = texelFetch( s_position, int2( pos2d ), 0, iSample );
#endif

// 3d view space pos reconstruction math
Expand Down

0 comments on commit 435918a

Please sign in to comment.