Skip to content

Commit

Permalink
Updated e_sampler_address_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
twist84 committed Nov 15, 2024
1 parent 9972e92 commit 17297cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion game/source/rasterizer/rasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ bool __cdecl c_rasterizer::end_albedo(short_rectangle2d const* bounds)
surface,
c_rasterizer::_surface_disable,
c_rasterizer::_sampler_filter_mode_unknown1,
c_rasterizer::_sampler_address_mode_unknown1,
c_rasterizer::_sampler_address_clamp,
1.0f,
1.0f,
1.0f,
Expand Down
8 changes: 6 additions & 2 deletions game/source/rasterizer/rasterizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,12 @@ struct c_rasterizer

enum e_sampler_address_mode
{
_sampler_address_mode_unknown0 = 0,
_sampler_address_mode_unknown1,
_sampler_address_wrap = 0,
_sampler_address_clamp,
_sampler_address_mirror,
_sampler_address_border,

k_number_of_sampler_address_modes
};

enum e_sampler_filter_mode
Expand Down
6 changes: 3 additions & 3 deletions game/source/render/views/render_player_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ void __thiscall c_player_view::render_()
c_rasterizer::_surface_accum_LDR,
c_rasterizer::_surface_disable,
c_rasterizer::_sampler_filter_mode_unknown1,
c_rasterizer::_sampler_address_mode_unknown1,
c_rasterizer::_sampler_address_clamp,
1.0f,
1.0f,
1.0f,
Expand Down Expand Up @@ -747,7 +747,7 @@ void __thiscall c_player_view::render_1st_pass()
c_rasterizer::_surface_accum_LDR,
c_rasterizer::_surface_albedo,
c_rasterizer::_sampler_filter_mode_unknown1,
c_rasterizer::_sampler_address_mode_unknown1,
c_rasterizer::_sampler_address_clamp,
1.0f,
1.0f,
1.0f,
Expand Down Expand Up @@ -790,7 +790,7 @@ void __thiscall c_player_view::render_2nd_pass()
c_rasterizer::_surface_accum_LDR,
c_rasterizer::_surface_disable,
c_rasterizer::_sampler_filter_mode_unknown1,
c_rasterizer::_sampler_address_mode_unknown1,
c_rasterizer::_sampler_address_clamp,
1.0f,
1.0f,
1.0f,
Expand Down

0 comments on commit 17297cb

Please sign in to comment.