tag:blogger.com,1999:blog-8935780327334775165.post4514064454311466118..comments2023-08-07T22:48:57.800+08:00Comments on Entity Crisis: Planet Shader #2Unknownnoreply@blogger.comBlogger9125tag:blogger.com,1999:blog-8935780327334775165.post-78628528174659422432012-02-08T02:50:28.835+08:002012-02-08T02:50:28.835+08:00I got it to work on Windows by adding the c.a = 1....I got it to work on Windows by adding the c.a = 1.0 too. <br /><br />It may be because Windows Unity defaults to D3D9. Adding a '-force-opengl' flag when launching might have solved the discrepancy as well, but Simon is right: Unity should be handling the Shader compilation similarly regardless of platformJonathan Dumainehttps://www.blogger.com/profile/15550164550998013241noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-77325610255525178292012-01-31T02:49:19.924+08:002012-01-31T02:49:19.924+08:00I too use Unity 3 (free version) on Windows. I add...I too use Unity 3 (free version) on Windows. I added c.a = 1.0; line, rebuild solution and it works.Robert Dzikowskihttps://www.blogger.com/profile/03774473741924565959noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-65917010010449292862011-09-07T01:50:57.695+08:002011-09-07T01:50:57.695+08:00Doesn't look like the c.a = 1.0; comment did a...Doesn't look like the c.a = 1.0; comment did anything for me. Any other suggestions?<br /><br />Unity3d 3 on Windows, btw.ThorOfAsgaardhttps://www.blogger.com/profile/15975061684302973665noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-86654239389052596512011-05-24T22:15:54.696+08:002011-05-24T22:15:54.696+08:00Add the line:
c.a = 1.0;
after the c.rgb = c.rgb...Add the line:<br /><br />c.a = 1.0;<br /><br />after the c.rgb = c.rgb * ... line.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-28464010290050108202011-01-26T09:33:03.256+08:002011-01-26T09:33:03.256+08:00Hmm, looks like it needs some modifications to wor...Hmm, looks like it needs some modifications to work on Windows. Strange, I thought Unity's ShaderLab took care of that.Simon Wittberhttps://www.blogger.com/profile/02730025645144151014noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-53250552995342667052011-01-26T04:15:36.235+08:002011-01-26T04:15:36.235+08:00Thanks Simon. unfortunatly i'm still getting t...Thanks Simon. unfortunatly i'm still getting the same result. I seem to have missed a console error before but i noticed it as soon as i tried your scene.<br /><br />Shader error in 'Planet': D3D shader assembly failed with: (61): error X5204: Read of uninitialized component(*) in r0: r/x/0 g/y/1 b/z/2 *a/w/3<br /><br />Not really sure what this is about unfortunatly.<br /><br />But thanks mate :) Really appreciate the help so far :)BloodRiotnoreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-85796143107619616382011-01-25T11:00:01.562+08:002011-01-25T11:00:01.562+08:00I'm not sure what the problem is, so I'll ...I'm not sure what the problem is, so I'll just give you what I have. <a href="http://www.differentmethods.com/packages/Planet.unitypackage" rel="nofollow">You can download the package here.</a>Simon Wittberhttps://www.blogger.com/profile/02730025645144151014noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-37593648552936929102011-01-25T01:43:57.413+08:002011-01-25T01:43:57.413+08:00Hello there... on your imagem it looks great. Unfo...Hello there... on your imagem it looks great. Unfortunatly i only get a black sphere when i try it. It is not illuminated in any way.<br /><br />Using unity 3.x indie with one light (tried all 3 types) on a sphere object.<br /><br />Am i doing something wrong? <br /><br />ThanksBloodRiotnoreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-59153561789674117952011-01-18T11:46:28.452+08:002011-01-18T11:46:28.452+08:00Very nice! May I use this in my game?Very nice! May I use this in my game?Petrozhttps://www.blogger.com/profile/12594038229752733567noreply@blogger.com