Git Product home page Git Product logo

Comments (6)

dacap avatar dacap commented on June 21, 2024 1

can the current ShaderRenderer use shaders to modifty the sprite?

No, the purpose of the ShaderRenderer is to render the sprite. If you want to create a shader to modify the sprite you have to use the app::make_shader() function defined in shader_helpers.h with your own shader/inputs/outputs (I have some code related to this for this feature, not yet public).

from aseprite.

dacap avatar dacap commented on June 21, 2024 1

No, it's not fully implemented (only on RGB, broken code, the shader wasn't ready, and we required to get the proper transformation matrix yet, and too little time to debug code yet).

Probably you are looking for something much simpler, like just running a shader in a rectangular area (like an FX). You are free to create a new issue to request a new feature in that case.

from aseprite.

gui-marc avatar gui-marc commented on June 21, 2024

Could this be implemented in the current state of the application? Did some research in the app's code but based on #3516 I guess Aseprite currently cannot use shaders for rendering images.

Am I right or did I miss something?

from aseprite.

dacap avatar dacap commented on June 21, 2024

There are still some work to do. For #3516 we have already something working in the ShaderRenderer class, and for this issue I have a local stash with some code, but they are two independent features (one uses shaders to render sprites, the other uses shaders to modify the sprite).

I'll see if I can push something about this in a draft PR with my local changes.

from aseprite.

gui-marc avatar gui-marc commented on June 21, 2024

In fact they are two independent features, but can the current ShaderRenderer use shaders to modifty the sprite? I have some interest and experience in CG stuff and would love to help implement that :)

from aseprite.

gui-marc avatar gui-marc commented on June 21, 2024

(I have some code related to this for this feature, not yet public)

So this feature is almost fully implemented, right? There's any other related issue related to this you think I could help?

from aseprite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.