WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 09-13-2016, 12:44 PM
dcnieho dcnieho is offline
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.

obj = vizshape.addSphere()
shader = viz.addShader(vert=getVertexCode(),frag=None)
fragment shader instead of None above:
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

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 08:22 PM
Texture Coordinate Generation (TexGen) using Shader goro Vizard 1 05-31-2013 02:44 AM
SSAO Shader Implementation FranciscoPeters Vizard 2 10-08-2011 05:19 AM
Multiple Textures for Diffuse and Specularity Shader Issue shivanangel Vizard 1 05-11-2009 11:44 AM
Specular Shader Issue shivanangel Vizard 2 05-06-2009 12:08 PM

All times are GMT -7. The time now is 02:32 AM.

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