Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: array at GLSL in shader builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: array at GLSL in shader builder



> im having this weird error when trying to define array in GLSL. the simple version is like this:
> float test[2] = {2.0, 2.0};
> most tutorials do array and the works fine.
> shouldnt we able to use array in GLSL? any1 know what did i miss?

Looks like Apple forgot to implement array initializers in GLSL. You
can declare the array, but can't initialize it's values.

Bug #5924418 filed on 2008 May, marked as duplicate of bug #5183554.


--
Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >array at GLSL in shader builder (From: Jos Timanta Tarigan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.