What it does
core.engine.import (procNode)
Bring an engine resource into a graph: the scene's water, a heightfield's heights or a texture's texels.
Built from io.engine with the function of the resource (importWater, importHeightfield, importTexture), the numbers moved onto the device by op.transfer.upload. Only the chosen resource is read.
water:{ kind = "scene.water", providers, names, version }.heightfield:{ cols, rows, minX, minZ, sizeX, sizeZ, heights }withheightsa Float column, row-major.texture:{ width, height, format, texels }withtexelsa Vec4 column.
Inputs
resource(one of water, heightfield, texture). Default"water". Which resource: the scene's water providers, a heightfield read as heights, or a texture read as texels.source(AssetRef, optional). Default"". The asset read: a.terrainDataor heightfield texture for "heightfield", a texture for "texture". Water reads the scene.cols(Number). Default129. Samples along X for a heightfield.rows(Number). Default129. Samples along Z for a heightfield.
Outputs
value: the resource: the water record, the heightfield record or the texture record.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.