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

tsl transpiler dont import float / int #30395

Closed
Makio64 opened this issue Jan 26, 2025 · 0 comments · Fixed by #30410
Closed

tsl transpiler dont import float / int #30395

Makio64 opened this issue Jan 26, 2025 · 0 comments · Fixed by #30410
Labels
TSL Three.js Shading Language
Milestone

Comments

@Makio64
Copy link
Contributor

Makio64 commented Jan 26, 2025

Description

While transpiling some code the float wasn't import in top import.

Reproduction steps

In tsl transpiler vec4 j = -49. * floor(p);

// Three.js Transpiler r172

import { floor, vec4 } from 'three/tsl';

const j = vec4( float( - 49. ).mul( floor( p ) ) ).toVar();

if 49. -> 49 int is not imported as well

Code

X

Live example

https://threejs.org/examples/webgpu_tsl_transpiler.html

Screenshots

No response

Version

r172

Device

No response

Browser

No response

OS

No response

@mrdoob mrdoob added the TSL Three.js Shading Language label Jan 26, 2025
@Mugen87 Mugen87 added this to the r173 milestone Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TSL Three.js Shading Language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants