Skip to content

Instantly share code, notes, and snippets.

@gleblebedev
gleblebedev / FreeCamera.cpp
Created April 29, 2022 10:34
Urho3D FreeCamera
//обязательно присвойте yaw первоначальное значение
REApplication::REApplication(Urho3D::Context* context)
: Application(context),
yaw_(0.0f),
pitch_(0.0f)
{
}
void REApplication::Start()
{
@gleblebedev
gleblebedev / gist:c01fa7c9a1c5bff273c9cbd3020d3b89
Created July 7, 2020 00:23
Urho3D PBR techniques generator
void Main()
{
string targetDir = @"C:\Urho3D\Urho3D\bin\CoreData\Techniques\PBR\";
foreach (var p in GetPermutations())
{
var name = new StringBuilder();
name.Append("PBR");
if (p.MetallicRough) name.Append("MetallicRough");
if (p.Diff) name.Append("Diff");
if (p.Normal) name.Append("Normal");
@gleblebedev
gleblebedev / UrhoExporter.cs
Last active February 9, 2020 18:08
Unity to Urho3D scene convertor
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using UnityEditor;
using UnityEngine;
using System.Linq;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace FixActionBar
{
internal class Program
{
private static void Main(string[] args)
{