ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Pixel Lighting - Custom API
person icon
kaelgodoy
Registered User
Quote
2026-08-20 14:32:47

I'm working on a custom API + HLSL shader that turns CopperCube's default vertex lighting into a pixel lighting. I'm using vibecoding to do it, and I'm getting a pretty decent result. As soon as I finish it, I'll upload here for testing.

It will not add dynamic/raycast shadows for the dynamic lights, only make them look better looking and possibly better blending with other lights.

embedded external image
🔎︎

Simple scene i made to test. The lights are close to the walls, and it doesn't get that illuminated triangle mesh look.

person icon
kaelgodoy
Registered User
Quote
2026-08-20 16:07:09

Uploaded it on Itch.io, if someone find errors or compatiblity problems, feel free to tell me.

https://naghara-games.itch.io/pe...

person icon
somethingsomethi
Guest
Quote
2026-08-20 21:51:27

rather insane, great job! if only there was a way to stack binary files...

person icon
kaelgodoy
Registered User
Quote
2026-08-20 22:28:33

somethingsomethi wrote:
rather insane, great job! if only there was a way to stack binary files...


Yes, it would be amazing to stack Robbo's upgraded APIs with Studio Rewired's reworked shadows and my per-pixel light.

person icon
kaelgodoy
Registered User
Quote
2026-08-20 22:29:34

Btw, just updated the zip file, now it contains a test .exe and the API, no need to keep the shader with the game executable.

person icon
guest_Sam
Guest
Quote
2026-08-21 06:42:45

Seems to work quite well. i posted on itch also.

Seems slightly darker overall maybe the radius isnt exact when just throwing it something already made for vertex lights.

I think maybe Directional light isnt coming into play here is maybe where its darker?.
Because the radius seem correct when near the light, its just when it falls off its fully black or 0,0,0.

easy enough to adjust for.

seems no performance hit. i get the same fps with it in use.
cc set for 250. vertical sync unlocked.


Sam

person icon
hadoken
Registered User
Quote
2026-08-21 13:03:00

Well done & thanks for sharing @kaelgodoy !!!

I would also vote for any option for stacking or combining CopperCube custom binaries in any way ...

Anyone having a launcher tested with custom binary A starting a game with custom binary B to finally provide all custom API of A & B to a game?

person icon
kaelgodoy
Registered User
Quote
2026-08-21 21:04:18

Thanks for the feedback mates. I updated the API recently, I discovered it was turning the skybox black, so it must be fixed now.
Since I'm compiling and testing the API at my company's PC, it is being tested on a AMD graphics card. When I get to my PC tomorrow, I'll test it on my NVidia. For now, if someone finds any bug, report to me and I'll find a way to fix it.

person icon
kaelgodoy
Registered User
Quote
2026-08-22 20:48:55

Just released another update:

2026.08.22 Update note:

- Now the ambient light really matters for the pixel lighting.

- Pixel light strength reduced to match a bit more what we see in the editor.

- Pixel lights on terrain disabled because of compatibility issues. It uses the default vertex lighting.

Working on a way to enable them without issues.

https://naghara-games.itch.io/pe...

person icon
blackwater
Registered User
Quote
2026-08-31 19:56:59

Impressive!
Also on my whishlist: a way to combine some of these really good binaries


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |