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 

RTT and Shaders using vertex attribute aliasing


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
moet
User


Joined: 19 Sep 2013
Posts: 27

PostPosted: Fri Mar 16, 2018 10:59 pm    Post subject:
RTT and Shaders using vertex attribute aliasing
Reply with quote

Hi all,
I have a simple RTT setup. works great but when I setup OSG to turn on the vertex attribute aliasing and allow OSG to provide gl_ inputs via the osg_ prefix my shader breaks. No errors. Can't even get a red colour on my test quad.
Can anyone see what I'm doing wrong? Can I still use glFragData?



vert:

#version 430 compatibility
layout (location = 1) in vec3 Position;
layout (location = 0) in vec2 TexCoord;


uniform mat4 osg_ModelViewMatrix;
uniform mat4 osg_ModelViewProjectionMatrix;
uniform vec4 osg_Vertex;

in float time;

void main() {
     
     gl_Position = osg_ModelViewProjectionMatrix * osg_Vertex;

}


frag:
//test

#version 430 compatibility
void main() {
gl_FragData[0] = vec3(1.0,0.0,0.0,0.0);

}

------------------
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 -> General 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 Shaders with multiple views using Vie... robertosfield General 5 Wed May 09, 2018 9:20 am View latest post
No new posts EXTERNAL: Re: Getting a callback to u... Rowley, Marlin R General 1 Tue Apr 10, 2018 6:58 pm View latest post
No new posts Getting a callback to update shaders? Rowley, Marlin R General 2 Tue Apr 10, 2018 12:49 pm View latest post
No new posts Shaders with multiple views, possible? arennuit General 9 Fri Jan 19, 2018 10:54 pm View latest post
No new posts Why are my shaders not being used? arennuit General 3 Fri Jan 19, 2018 6:45 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