x


Self-Illumination Diffuse Shader Dark on ES1

How can I make the self-illumination diffuse shader brighter on ES1?

It appears fine on ES2 but looks dull on ES1

more ▼

asked Apr 09 '12 at 04:37 PM

numberkruncher gravatar image

numberkruncher
1.9k 36 46 57

You probably want to use Quad instead of double. However, you really should alter that shader; using greater than lowp isn't the most performant solution. Multiple MAD lines are better. http://answers.unity3d.com/questions/212675/lighting-less-intense-on-ios.html

Apr 09 '12 at 08:11 PM Jessy

@Jessy cheers I will try that. Where can I find the source for this particular shader?

Apr 09 '12 at 08:14 PM numberkruncher

They're prefaced by "Illumin" in the DefaultResources folder. And it's weird, but they didn't use the Double keyword in the fallback, so adding that will probably be fine. They're actually using "fixed" variables, as you'd want for devices running on a battery, for the main shader.

Apr 10 '12 at 10:36 AM Jessy

Cheers @Jessy

Apr 10 '12 at 05:03 PM numberkruncher
(comments are locked)
10|3000 characters needed characters left

0 answers: sort oldest
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2000
x1660
x1

asked: Apr 09 '12 at 04:37 PM

Seen: 476 times

Last Updated: Apr 10 '12 at 05:03 PM