Saturday, December 29, 2007

Default Uniform Values

In GLSL 1.10 all uniforms are assigned a default value of 0 when a program is successfully linked.  In GLSL 1.20 all uniforms, except for samplers, can have an initializer, like so:

uniform vec3 color = vec3(0.7, 0.7, 0.2);

All uniforms without initializers are assigned a default value of 0.

References:
GLSL 1.20 specification, p. 24

17 comments:

Anonymous said...

Man, this blog is awesome! It offers some great tips for graphic developers.

Anonymous said...

Doesn't work on ATI hardware, of course.

Anonymous said...

I apologise, there is an offer to go on other way.
Your phrase is matchless... :)
It not absolutely that is necessary for me.
Between us speaking, I advise to you to try to look in google.com
You commit an error. I suggest it to discuss.

[url=http://michaelkorscheap2.buzznet.com/user/][b]michael kors outlet online[/b][/url]
[url=http://shenenmaoyiww.snappages.com/blog.htm][b]michael kors outlet online[/b][/url]
[url=http://mvpmichaelkors0.livejournal.com/662.html][b]michael kors outlet online[/b][/url]
[url=http://cheapmkbag2.tumblr.com/][b]michael kors outlet online[/b][/url]
[url=http://mvpmichaelkorsoutlet2.weebly.com/][b]michael kors outlet online[/b][/url]

Anonymous said...

Have you ever considered about adding a little bit more than just your articles?
I mean, what you say is fundamental and everything.
But imagine if you added some great visuals or videos to give
your posts more, "pop"! Your content is excellent but
with pics and videos, this site could certainly be one of the very best in its niche.
Good blog!

Also visit my web site; bankruptcy laws in florida

Anonymous said...

Wonderful article! We will be linking to this particularly great post on our website.

Keep up the great writing.

My web page ... SlimBerry cleanse

Anonymous said...

Pretty section of content. I just stumbled upon your blog and in accession
capital to assert that I get actually enjoyed account your
blog posts. Any way I'll be subscribing to your feeds and even I achievement you access consistently quickly.

Check out my site - Buy Nuvocleanse

Anonymous said...

When someone writes an article he/she keeps the image of a user in his/her brain that how a user can understand it.
Therefore that's why this article is outstdanding. Thanks!

My weblog - Androsolve Muscle Builder

Anonymous said...

Heya i'm for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and aid others like you helped me.

my blog post Stem Cell Therapy

Anonymous said...

I am really loving the theme/design of your web
site. Do you ever run into any internet browser compatibility problems?
A small number of my blog visitors have complained
about my website not operating correctly in Explorer but looks great in Opera.
Do you have any ideas to help fix this issue?

Take a look at my blog post - Order Raspberry Ketone Plus

Anonymous said...

Wow, awesome blog layout! How long have you been blogging for?

you made blogging look easy. The overall look of your website
is fantastic, let alone the content!

Feel free to surf to my weblog: Vimax Review

Anonymous said...

If you would like to obtain a good deal from this piece of writing then
you have to apply such methods to your won web site.

My page garciniacambogia

Anonymous said...

Informative article, exactly what I wanted to find.

Here is my web-site ... Stem Cell Threapy Cream Reviews

Anonymous said...

What's up to every one, for the reason that I am really eager of reading this weblog's post to be
updated on a regular basis. It consists of fastidious information.


my blog :: summer internship

Anonymous said...

Great site. A lot of useful information here. I'm sending it to some friends ans also sharing in delicious. And naturally, thank you for your sweat!


Ultra Force facts

Anonymous said...

My spouse and I absolutely love your blog and find
a lot of your post's to be precisely what I'm looking for.
Does one offer guest writers to write content to suit your needs?
I wouldn't mind writing a post or elaborating on a few of the subjects you write regarding here. Again, awesome site!


payday loan online

Anonymous said...

Hey there! I know this is kind of off topic but I was wondering if
you knew where I could find a captcha plugin for
my comment form? I'm using the same blog platform as yours and I'm having trouble finding one?
Thanks a lot!

my page Buy African Mango

Anonymous said...

This design is wicked! You most certainly know how to keep
a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost.
..HaHa!) Fantastic job. I really loved what you had to say, and more than that, how you
presented it. Too cool!

Review my webpage - Vimax Free Trial