Unity
哗啦cl
不会编程的蒟蒻
展开
-
unity的ComputeShader
using System.Collections;using System.Collections.Generic;using UnityEngine;public class ComputeManager : MonoBehaviour{ public Texture2D inputTexture; private RenderTexture ART; private RenderTexture huvRT; public ComputeShader Ini.原创 2020-12-02 17:56:22 · 194 阅读 · 0 评论 -
失败的UnityRayMarchShader
此后这个博客专门用于做失败记录了哈哈哈https://www.youtube.com/watch?v=82iBWIycU0o&list=PL3POsQzaCw53iK_EhOYR39h1J9Lvg-m-g&index=2using System.Collections;using System.Collections.Generic;using UnityEngine;[RequireComponent(typeof(Camera))][ExecuteInEditMode原创 2020-09-23 13:06:37 · 223 阅读 · 0 评论 -
Unity未完成的布料模拟
// qu.cpp : This file contains the 'main' function. Program execution begins and ends there.//#include <stdio.h>#include <stdlib.h>#include <vector>#define STB_IMAGE_IMPLEMENTATION#include "stb_image.h"#define STB_IMAGE_WRITE_IMPL.原创 2020-09-06 17:13:49 · 204 阅读 · 0 评论 -
Unity程序化地形p2
MeshGeneratorpublic static MeshData GenerateTerrainMesh(float[,] heightMap,float heightMultiplier,AnimationCurve heightCurve)...meshData.vertices[vertexIndex] = new Vector3(x + topLeftX,heightCurve.Evaluate(heightMap[x, y]) * heightMultiplier, topL原创 2020-08-11 12:22:57 · 428 阅读 · 0 评论 -
Unity程序化地形p1
新建一个noise.cs文件,代码如下:using System.Collections;using System.Collections.Generic;using UnityEngine;public static class Noise { public static float[,] GenerateNoiseMap(int mapWidth,int mapHeight,float scale) { float[,] noiseMap = new fl原创 2020-08-11 10:25:11 · 487 阅读 · 1 评论