Search Unity

AGAL

Discussion in 'Flash' started by seventyfive, Oct 28, 2012.

  1. seventyfive

    seventyfive

    Joined:
    Jul 20, 2007
    Posts:
    34
    hey there!

    is it possible to directly integrate agal code somehow when deploying to flash?

    on the other hand we could have a flash based loader and load our unity compiled package and modify the shaders from the outside.

    any ideas?

    greetings,
    marco
     
  2. mtoivo

    mtoivo

    Joined:
    Jul 30, 2012
    Posts:
    274
    I'm only guessing, but I think that's out of Unity's flash-integration scope. As I understand it, however, you can write pretty low level shaders in Unity itself, have you looked into it?
     
  3. seventyfive

    seventyfive

    Joined:
    Jul 20, 2007
    Posts:
    34
    hey mtoivo!

    not really if you mean anything besides the regular shaders with vertex/fragment/surface shaders?
    as far as i understand by now, this does not apply directly for the agal compilation?

    what i am trying to achieve now is transferring e.g. a car paint shader to agal, as the regular compilation delivers unwanted results. even "simpler" shaders, like e.g. reflective specular do not work well, though i saw better results here and there for stage3d/agal.
     
  4. seventyfive

    seventyfive

    Joined:
    Jul 20, 2007
    Posts:
    34
    but i found this, which is supposed to be shaderlab for agal:
    http://www.youtube.com/watch?v=yuR1e1PjU8Y

    it runs horrible on my retina mac book, but on a regular graphics card (mac pro) quite well:
    http://shaderlab.aerys.in/

    i have found additional stuff on github, too. maybe you know it already:
    https://github.com/adobe/glsl2agal (as maybe seen on aras blog?)

    various and introduction to agal shader programming
    http://jacksondunstan.com/articles/tag/agal
    http://www.saltgames.com/2011/stage-3d-shader-cheatsheet/

    very interesting one:
    http://blog.onebyonedesign.com/acti...-with-agalmacroassembler-and-opengl-examples/
     
    Last edited: Oct 29, 2012
  5. RalphH

    RalphH

    Administrator

    Joined:
    Dec 22, 2011
    Posts:
    592
    It is not possible to use AGAL shaders within Unity for Flash Export (or AGAL shaders with Unity at all).
    Please submit faulty shaders / shader translation as a bug so we can look at the issue.