Skip to content

Commit

Permalink
less ssao in fog, fix lens aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
cryham committed Dec 6, 2024
1 parent 0abf242 commit db858a2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion data/Hlms/Pbs/Any/SR3_Fog_piece_ps.any
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//** fog fade for ssao
@property( hlms_fog && !sky )
outPs_fog = fogWeight * heightMul;
// outPs_fog *= fluidHeight; //bad
outPs_fog = lerp(
lerp ( 0.0, outPs_fog, fluidDist ),
outPs_fog, fluidHeight ); // in fluid
Expand Down
2 changes: 1 addition & 1 deletion data/materials/Common/GLSL/SSAO_Apply_ps.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ void main()
// fragColour = vec4( ssao, ssao, ssao, 1.0 ); // test ssao only
// fragColour = vec4( ssao, ssao, fog, 1.0 ); // test fog, ssao yellow-blue

fragColour = vec4( mix(col.xyz, col.xyz * ssao, fog), col.a );
fragColour = vec4( mix(col.xyz, col.xyz * ssao, fog * fog), col.a );
}
7 changes: 4 additions & 3 deletions docs/Roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ Marked: `crucial`, **Next or Big**, _Important_.
*editor videos* all new

redo all track views, with ssao, effects
ed rtt less ssao size?

`ed` apply shadows crash
ed fix *brushes* png load

add **sounds**, WIP from [Changelog.md](Changelog.md)

fix tracks:
AnomalyFun invisible boxes
|AnomalyFun invisible boxes rqg
|FrozenGarden invisible icicles
|CrystalIslands no flowers
MogFoss waterfals
FrozenGarden invisible icicles
Mudflats gravel alpha bridge
CrystalIslands no flowers

----
### 🪄 Effects
Expand Down
2 changes: 1 addition & 1 deletion src/common/AppGui_SSAO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void AppGui::UpdSunPos(Camera *camera)
v.x = p2.x * 0.5f;
v.y = -p2.y * 0.5f;
v.z = max(0.f, min(1.f, -scn->fx.sunDir.dotProduct(camera->getDirection()) )); // sun dot cam
v.w = float(mWindow->getWidth()) / float(mWindow->getHeight()); // wnd x/y aspect
v.w = camera->getAspectRatio();

efxClrSun = scn->fx.sunClr;
efxClrRays = scn->fx.raysClr; // or own par-
Expand Down

0 comments on commit db858a2

Please sign in to comment.