Commit 7fdc7da6 by wester

vr tests

parent eed00028
......@@ -36,6 +36,8 @@ APointCloudActor::APointCloudActor(const FObjectInitializer& ObjectInitializer)
}
void APointCloudActor::setPoints(UTexture2D* PointCloud, FVector pos, FVector scale){
if (pos.Y < 0) pos.Y = 0;
UE_LOG(TILES, Log, TEXT("PointclodActor pos: %s size: %s"), *pos.ToString(), *scale.ToString());
Material->SetTextureParameterValue(FName("PointCloud"), PointCloud);
Material->SetScalarParameterValue(FName("TextureSize"), PointCloud->GetSizeX());
Material->SetVectorParameterValue(FName("CloudCenter"), pos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment