虚幻4
哗啦cl
不会编程的蒟蒻
展开
-
虚幻4创建纹理资产
// Fill out your copyright notice in the Description page of Project Settings.#include "Yu.h"#include "Engine\Texture2D.h"#include "UObject\Package.h"#include "AssetRegistryModule.h"// Sets default valuesAYu::AYu(){ // Set this actor to call Ti.原创 2020-07-11 21:58:30 · 1336 阅读 · 0 评论 -
虚幻4简易RayMarch
float4 Col = 0;float3 pos = WorldPosition;float3 Normal = 0;for(int i = 0;i<MaxSteps;i++){ if(SceneDepth < length(pos - CameraPosition)) break; float distance = length(pos - ObjectPosition) - 50; if(distance < 0.01) { Co.原创 2020-07-08 10:14:26 · 226 阅读 · 0 评论