Triton effect can not display in osgEarth3.6 #2600
Unanswered
FuXiii
asked this question in
Support Q&A
Replies: 1 comment 4 replies
-
Thanks for explaining the things you tried. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RTX 3070
Before I use
osgEarth3.6
, I had been usedosgEarth3.3
: install theosgEarth::Util::LogarithmicDepthBuffer
onroot
camera and useuser-functions.glsl
user-vert-functions.glsl
which under thesrc/osgEarthTriton/Shaders
to replace the same name shader file under$(TritonPath)/Resources
Everything is well in
osgEarth3.3
, but after I upgrade to useosgEarth3.6
theTriton
ocean disappear base the same code usage.And I try to:
osgEarth::Util::LogarithmicDepthBuffer
user-vert-functions.glsl
like:user-functions.glsl
like:The
Triton
ocean can display but looks like theaccuracy
is low (Not highly coupled with the coastline).After that I guess maybe the
uniform mat4 osg_ProjectionMatrix
not set correctly, and then I try to code inuser-vert-functions.glsl
like:And after I run the application the
Triton
ocean disappear. Maybe theosg_ProjectionMatrix
not set correctly let it becomezero
matrix.And I try to use
TritonLayer::setOpacity(float)
to set oceanAlpha
, the result look like not affect onoe_VisibleLayer_opacityUniform
inuser-functions.glsl
Beta Was this translation helpful? Give feedback.
All reactions