Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples for nodes: RaycastRay, GetGeom and StoW and WtoS and some file fixes #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added GetGeom/GetGeom.blend
Binary file not shown.
Binary file added RaycastRay/RaycastRay.blend
Binary file not shown.
Binary file not shown.
Binary file modified material_bump/material_bump.blend
Binary file not shown.
3 changes: 3 additions & 0 deletions screentex/Sources/arm/MyTrait.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class MyTrait extends iron.Trait {
// Access final composited image that is afterwards drawn to the screen
var image = RenderPathCreator.finalTarget.image;

g.color = 0xff000000;
g.fillRect(0, 0, image.width / 5, image.height / 5);

g.color = 0xffffffff;
if (kha.Image.renderTargetsInvertedY()) {
g.drawScaledImage(image, 0, image.height / 5, image.width / 5, -image.height / 5);
Expand Down