Skip to content

What class is the alternative of Transform ? #2114

Closed Answered by kaorukitao
kaorukitao asked this question in Q&A
Discussion options

You must be logged in to vote

I successed transform feedback using below:

import { luma } from "@luma.gl/core";
import { Model } from "@luma.gl/engine";
import { WebGLDevice } from '@luma.gl/webgl';
//shader source with raw-loader
import vs from "./shader.vs.glsl";
import fs from "./shader.fs.glsl";

luma.registerDevices([ WebGLDevice ]);

const readBufferData	= async ( buffer ) => {
	const data	= await buffer.readAsync();
	return new Float32Array( data.buffer );
};

window.addEventListener( "load", async () => {
	//data for input 4 elements per vertex, 2 vertices
	const srcData	= new Float32Array([
		0, 1, 2, 3,
		4, 5, 6, 7,
	]);
	const vertexCount	= 2;
	const device	= await luma.createDevice({
		type: "webgl",
		ad…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@kaorukitao
Comment options

Comment options

You must be logged in to vote
2 replies
@kaorukitao
Comment options

@kaorukitao
Comment options

Answer selected by kaorukitao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants