Jump to content


  • Content Count

  • Joined

  • Last visited

About lasertown

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. For what it's worth, I'm also experiencing this.
  2. Thanks, Ivan. Is there a discord channel or slack channel where you guys hangout that you could invite me to for when I need clarification from the repo owners? 😃
  3. I love pixi.js, however I think some of the documentation is unclear. I see the same questions asked over and over so I don't think I'm alone. I'm a native english speaker and would like to help revise the pixi documentation if possible in an attempt to make it clearer for everyone to consume. Is it possible for me to contribute to this project in this way?
  4. Ok I think I understand the intention now, thanks Ivan!
  5. It might be that you just need to run a webserver locally and have it serve your index.html rather than opening the index.html with a browser (if this is indeed what you're doing.) Python comes with a simple http server you can start up easily.
  6. I'm confused as to why someone would create a group and layer rather than just a layer (which will create a default group if none is given). This part in the documentation I think explains it, but I don't get what's being said: Can someone clarify how this API was designed, or clarify when someone would need a Group to "move between stages?" I'm not exactly sure what this means. Thanks, Mike
  7. Apologies, I assure you I did look through what I could find before posting. I had seen the mesh-and-shaders example, but this shows a Mesh using a constructor which accepts a shader. Sprite does not have a constructor like this. But the Sprite documentation shows a 'shader' property which can either be a Filter or a Shader, but setting this property appears not to have any effect. So my question is, is it possible to apply a shader to a Sprite object? Or do I need to instead create a textured mesh if I want to apply a customer shader (not filter) to a display object?
  8. I understand the difference between filters/shaders in pixi, but how does one actually apply a custom shader in v5? I'm assuming filters have more overhead than using raw shaders (from everything I've read) so I'd like to use shaders for simple effects. Assigning the shader property of a sprite to a valid program doesn't seem to do anything. Thanks
  9. Oh ok I see. Thanks so much, I'll try using just a shader.
  10. I just started working with pixi filters (using pixi 5.x) and I'm confused about the coordinate systems available to me inside the fragment shader. I've tried reading the documentation and I'm still confused. Specifically, I have a texture thats 64x64 pixels, and I want to color fragments a certain way if they're past a certain percentage. So like, I'd like to color the fragments in the last fourth of the texture red. I assumed I could do something like if(vTextureCoord.x > .75) to identify these fragments, but this percentage doesn't seem to map to the fragments I think it should. I inspec
  • Create New...