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 

osgdem layers question


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb]
View previous topic :: View next topic  
Author Message
creature (Ethan Fahy)
Appreciator


Joined: 07 Sep 2011
Posts: 142

PostPosted: Mon Jul 09, 2012 5:00 pm    Post subject:
osgdem layers question
Reply with quote

From the documentation, the --layer flag allows me to "Specify the layer that the next source Texture will contribute to."

1. Does this indexing start at 0 or 1?

2. Can I access these layered textures in a GLSL vertex shader using
Code:
gl_TexCoord[n] = gl_MultiTexCoordn;

and access that layer texture's color in the frag shader using
Code:
vec4 color = texture2D(baseTexture, gl_TexCoord[n].st);

where n is the layer number?[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb] 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 gl_vertexID and OpenSceneGraph question EonStrife General 0 Wed Mar 21, 2018 1:52 pm View latest post
No new posts Touchscreen and GUIEventHandler question jeladi General 0 Thu Mar 08, 2018 10:09 pm View latest post
No new posts How to set the transparency for one o... adrianj General 0 Tue Feb 06, 2018 3:19 am View latest post
No new posts osgFX::Outline question jeladi General 0 Wed Dec 20, 2017 8:09 pm View latest post
No new posts SetAttribute / RemoveAttribute Question Valzul General 3 Tue Nov 28, 2017 4:35 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