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

TextureNode: Support to sampler and texture property output #22501

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Sep 7, 2021

Usage:

const texNode = new TextureNode( texture );
const uvNode = new UVNode();

material.colorNode = new FunctionNode(
`vec3( texture2D A, sampler B, vec2 uv ) {

	return texture( sampler2D( A, B ), uv ).xyz;

}`).call({
	A: texNode,
	B: texNode,
	uv: uvNode
});

@sunag sunag self-assigned this Sep 7, 2021
@sunag sunag added this to the r133 milestone Sep 7, 2021
@Mugen87 Mugen87 merged commit 8dedd6c into mrdoob:dev Sep 7, 2021
@mrdoob
Copy link
Owner

mrdoob commented Sep 7, 2021

Thanks!

@sunag sunag deleted the dev-texturenode branch September 8, 2021 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants