OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Shader Subroutine StateAttribute


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11238

PostPosted: Wed Nov 16, 2016 9:54 am    Post subject:
Shader Subroutine StateAttribute
Reply with quote

Hi Julian,

I'm just looking through my pending osg-submissions and see that this
submission thread hasn't been resolved yet. One development on the
OSG side that may influence how you tackle this functionality is now
part of an experimental shader_pipeline branch of the OSG.

The shader_pipeline branch wraps new functionality for automatically
mapping fixed function state to shaders. To support this I've
refactored osg::Uniform so there is now an osg::UniformBase class with
a virtual apply() method that allows one to subclass from
osg::UniformBase and provide your own custom implementation. The way
I'm using it to utilize a TemplateUniform class that is then used to
provide Vec3Uniform, MatrixfUniformm etc. which make it lighter weight
to set/get properties rather was possible with the old osg::Uniform.

I don't know if this helps with SubroutineUniform but thought I'd
mention this new functionality as it it does provide more flexibility.

Cheers,
Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Post Processing Effect - Vertex Shade... guyv General 27 Sat Sep 16, 2017 3:48 am View latest post
No new posts Pro Process Effect Vertex Shader not ... guyv General 1 Fri Sep 15, 2017 10:22 pm View latest post
No new posts Post Process Effect Vertex Shader guyv General 1 Fri Sep 15, 2017 8:29 pm View latest post
No new posts Post Process Effect Shader guyv General 1 Fri Sep 15, 2017 8:27 pm View latest post
No new posts Post Process Effect Shader guyv General 1 Fri Sep 15, 2017 8:27 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP