- This topic has 2 replies, 2 voices, and was last updated 7 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › [SOLVED] Default Shader in SOFA
Tagged: 64_bits, default shader, shader, SOFA_1608, Windows_10
Hi,
I’m trying to write a custom shader for my scene. I know that I need to include OglShader tag in the .scn file. However, I was curious to understand what happens when there is no OglShader tag. I was unable to file any default shader in /share/shaders or in the code. Any pointers would be appreciated.
Thanks,
Sayak
Hello,
I guess you are speaking about “OglShader tag” to mean “
If so, if there is no OglShader node in your file, then the rendering will use standard OpenGL fixed pipeline methods.
Mode doc about Shader :
You can see a simple use of shader into Sofa by having a look at the different examples located in examples/Components/visualmodel (OglShader.scn, OglShader_tessalation.scn)
Hi Froy,
Thanks for the information. I was successfully able to implement a PN_QUADS tessellation shader for our scene.
Thanks,
Sayak
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.