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: 10799

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 Merge Shader::Program from differents... Paradox General 1 Tue Feb 28, 2017 3:53 pm View latest post
No new posts Check if sampler2D is valid in fragme... romulogcerqueira General 10 Tue Dec 27, 2016 4:52 am View latest post
No new posts Is it possible to draw an ive object ... mgreene General 2 Mon Dec 12, 2016 8:23 pm View latest post
No new posts passing uniforms to compute shader Mary-Ann General 2 Mon Oct 24, 2016 2:24 pm View latest post
No new posts pass uniforms to compute shader Mary-Ann Submission 2 Mon Oct 24, 2016 2:09 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