WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-13-2016, 11:44 AM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
passthrough fragment shader

I am trying to do a bit of vertex (and hopefully geometry) shading with the vertices of a node. Specifying a shader program with no fragment shader, or specifying the below fragment shader however both lead to color of the node being discarded.

Code:
obj = vizshape.addSphere()
shader = viz.addShader(vert=getVertexCode(),frag=None)
obj.apply(shader)
fragment shader instead of None above:
Code:
void main()
{
	gl_FragColor = gl_Color;
}
Could you let me know what the passthrough vertex shader should look like in this case?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multitex fragment shader issue for different sized textures pitbool Vizard 3 12-08-2015 07:22 PM
Texture Coordinate Generation (TexGen) using Shader goro Vizard 1 05-31-2013 01:44 AM
SSAO Shader Implementation FranciscoPeters Vizard 2 10-08-2011 04:19 AM
Multiple Textures for Diffuse and Specularity Shader Issue shivanangel Vizard 1 05-11-2009 10:44 AM
Specular Shader Issue shivanangel Vizard 2 05-06-2009 11:08 AM


All times are GMT -7. The time now is 01:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC