Shader Extension

@Luke haha, yeah this extension predates scaling by a couple years so i’m not surprised. i’ll have to think about if i want to add support for that or not in the revamped extension… would anybody actually use it?

3 Likes

Considering @Luke found this bug, I assume he uses it, so you can add it for him :joy:

1 Like

Yeah I was making a cooldown and I was trying to change the scale of the shader. If possible can you also add a change height/length by x block that would be amazing.

1 Like

With enough pain (2hrs worth) you can force an existing colour palette into makecode’s colour ramps. Here is the NA16 palette by Nauris

Colour ramp rules:

  • 3 colour ramps of 5 colours can be made
  • 3 colour ramps of 4 colours can be made
  • 1 colour ramp of 3 colours can be made
    (Black background is counted)

Process


There are 4 main colour ramps (greyscale, warm, greens, blues) but only 3 possible spots so blue’s colour ramps aren’t as nice as the other ones. It’s kind of like a puzzle to find a suitable combination as there are always unexpected colours that work well together (4th colour ramp) and compromises you have to make (5th colour ramp)

Conclusion
If you want to make a custom colour palette for makecode follow the colour ramp rules and make sure they all fade to the same colour.

Or just wait for Richard to update the shader extension lol

1 Like

when we added the color palette switcher, i had to painstakingly go through each one of the palettes and match the colors to whichever color they were closest to in the default arcade palette so that the gallery wouldn’t appear super broken.

took me hours

2 Likes

i’m going to be making a new extension that combines this and the lantern extension (will also include multiple light sources) and i want to get a good idea of what i should be keeping from this extension. so, a few quick questions for anyone who’s tried it out:

  1. What do you use this extension for?
  2. Is there anything you were hoping that this extension could do but it doesn’t do today? (besides defining color ramps)

@Sarge @Luke @HalignionThunder @UnsignedArduino

5 Likes

I use it for just shading in general, like for sprite shadows. I don’t remember but I don’t think you can change the shadow or intensity of a sprite? (it’s been a long time since I used it) Possibly an “optimized” shader sprite (like the rectangle version) but a circle or oval? Those seem to be used pretty often for sprites.

I think it’s a great idea to combine the lantern and shading extension!

4 Likes

Everything @UnsignedArduino said, but also a flashlight type of lantern, that points in a direction? It would also be great if you could define a range, by which I mean how wide the flashlight is.

Also, scaling not being broken lol

3 Likes

I’ve used shaders for a transparent/translucent look so it would be cool if there could be multiple custom shaders in a project so that you could use one shader to lighten an image and use another for a specific use (eg: translucency)
Being able to make sprites not affected by shaders would be useful especially if the shader is supposed to be under the player sprite
Ability to change the width of all the light bands in the lantern extension might be helpful but it’s kind of niche

3 Likes