Skip to content

macodeth/CocosShader2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CocosShader2D

Implementation of some nice 2D Shaders in Cocos Creator

DEMO

demo.mp4

Shaders

  • Parallax: infinite scrolling sprite, works even if texture doesn't have REPEAT wrapping mode
  • Outline: add a simple outline to sprite
  • Barrel Distortion (borrowed from Phaser)
  • Pixelate (borrowed from Phaser)
  • Flag: flag waving animation (inspired by a Godot shader)
  • Fake Perspective: make sprite to have a fake 3d look (based on a Godot shader)
  • Wipe Horizontal: simple appear/disappear animation in horizontal axis
  • Wipe Vertical: simple appear/disappear animation in vertical axis
  • Rainbow: rainbow color looping
  • 2-Color Gradient: horizontal gradient using 2 colors
  • 3-Color Gradient: horizontal gradient using 3 colors

References

Phaser
2D simple animated flag shader
2D-perspective

About

Implementation of some 2D shaders in Cocos Creator 3.8+

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors