Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Custom shader

  • #10, by stroncis 9 years ago Zitieren
    You can find some starting info for shaders here: http://www.visionaire-studio.com/luadocs/#shaders

    Thank You! And this is very good resource, i must say.

    P.S.: and maybe someone will find useful reference for GLSL to HLSL https://docs.microsoft.com/en-us/windows/uwp/gaming/glsl-to-...
  • #11, by ke4 9 years ago Zitieren
    Looking at the docs, is the draw function alredy built in RC0?

    graphics.font = Fonts["fontName"] 
    
    graphics.drawFont("Hello world", 500, 200, 1.0)

    local sprite = graphics.loadFromFile("vispath:test.webp")
    
    graphics.drawSprite(sprite, 500, 200, 0)

    Neither of this is doing anything.
  • #12, by SimonS 9 years ago Zitieren
    I keep repeating this, but you need to do this in a callback. I will soon a page on the draw functions:

    graphics.addDrawFunc("draw()", 0)
    function draw()
      graphics.font = Fonts["fontName"] 
    
      graphics.drawFont("Hello world", 500, 200, 1.0)
    end
  • #13, by ke4 9 years ago Zitieren
    Sorry didn't notice you mentioned this. Anyway it works now, thanks! smile