mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-16 05:49:41 -07:00
actually still need corner sdf sample with sufficient softness as well
This commit is contained in:
1 parent
afe105da31
commit
83e8bb8ddd
3 files changed
+6
-6
No files matched your search
@@ -184,7 +184,7 @@ str8_lit_comp(
|
||||
" \n"
|
||||
" // rjf: sample for corners\n"
|
||||
" float corner_sdf_t = 1;\n"
|
||||
" if(vertex2pixel.corner_radius_px > 0)\n"
|
||||
" if(vertex2pixel.corner_radius_px > 0 || vertex2pixel.softness_px > 0.75f)\n"
|
||||
" {\n"
|
||||
" float corner_sdf_s = rect_sdf(sdf_sample_pos,\n"
|
||||
" vertex2pixel.rect_half_size_px - float2(vertex2pixel.softness_px*2.f, vertex2pixel.softness_px*2.f),\n"
|
||||
|
||||
Reference in new issue
Block a user